Skip to content

Commit

Permalink
Use "name" instead of "Field name".
Browse files Browse the repository at this point in the history
Co-authored-by: Sarah Gilmore <[email protected]>
  • Loading branch information
kevingurney and sgilmore10 committed Aug 30, 2023
1 parent 0df71da commit 2f80fcf
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions matlab/test/arrow/tabular/tRecordBatch.m
Original file line number Diff line number Diff line change
Expand Up @@ -224,7 +224,7 @@ function SchemaNoSetter(tc)
end

function GetColumnByName(testCase)
% Verify that columns can be accessed using a field name.
% Verify that columns can be accessed by name.
recordBatch = arrow.tabular.RecordBatch.fromArrays(...
arrow.array([1, 2, 3]), ...
arrow.array(["A", "B", "C"]), ...
Expand All @@ -246,7 +246,7 @@ function GetColumnByName(testCase)
end

function GetColumnByNameWithEmptyString(testCase)
% Verify that a column whose Field name is the empty string ("")
% Verify that a column whose name is the empty string ("")
% can be accessed using the column() method.
recordBatch = arrow.tabular.RecordBatch.fromArrays(...
arrow.array([1, 2, 3]), ...
Expand All @@ -261,7 +261,7 @@ function GetColumnByNameWithEmptyString(testCase)
end

function GetColumnByNameWithWhitespace(testCase)
% Verify that a column whose Field name contains only whitespace
% Verify that a column whose name contains only whitespace
% characters can be accessed using the column() method.
recordBatch = arrow.tabular.RecordBatch.fromArrays(...
arrow.array([1, 2, 3]), ...
Expand All @@ -285,7 +285,7 @@ function GetColumnByNameWithWhitespace(testCase)

function ErrorIfColumnNameDoesNotExist(testCase)
% Verify that an error is thrown when trying to access a column
% with a Field name that is not part of the Schema of the RecordBatch.
% with a name that is not part of the Schema of the RecordBatch.
recordBatch = arrow.tabular.RecordBatch.fromArrays(...
arrow.array([1, 2, 3]), ...
arrow.array(["A", "B", "C"]), ...
Expand Down Expand Up @@ -362,7 +362,7 @@ function GetColumnByNameWithChar(testCase)
actual = recordBatch.column(name);
testCase.verifyEqual(actual, expected);

% Should match the third field whose name is "123".
% Should match the third column whose name is "123".
name = '123';
expected = arrow.array([true, false, true]);
actual = recordBatch.column(name);
Expand Down

0 comments on commit 2f80fcf

Please sign in to comment.