Skip to content

Commit e850a8d

Browse files
Update matlab/src/matlab/+arrow/+tabular/Table.m
Co-authored-by: Kevin Gurney <[email protected]>
1 parent 6f5293f commit e850a8d

File tree

1 file changed

+1
-1
lines changed
  • matlab/src/matlab/+arrow/+tabular

1 file changed

+1
-1
lines changed

matlab/src/matlab/+arrow/+tabular/Table.m

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -161,7 +161,7 @@ function displayScalarObject(obj)
161161
if ~isempty(badIndex)
162162
badIndex = badIndex + 1;
163163
expectedSchema = arrow.tabular.internal.display.getSchemaString(firstSchema);
164-
unexpectedSchema = arrow.tabular.internal.display.getSchemaString(batches{badIndex}.Schema);
164+
inconsistentSchema = arrow.tabular.internal.display.getSchemaString(batches{inconsistentSchemaIndex }.Schema);
165165
msg = "Schema of RecordBatch %d is\n\n\t%s\n\nExpected RecordBatch Schema to be\n\n\t%s";
166166
msg = compose(msg, badIndex, unexpectedSchema, expectedSchema);
167167
error("arrow:Table:FromRecordBatches:InconsistentSchema", msg);

0 commit comments

Comments
 (0)