File tree Expand file tree Collapse file tree 1 file changed +5
-5
lines changed
matlab/src/matlab/+arrow/+tabular Expand file tree Collapse file tree 1 file changed +5
-5
lines changed Original file line number Diff line number Diff line change @@ -158,12 +158,12 @@ function displayScalarObject(obj)
158
158
otherSchemas = cellfun(@(rb ) rb .Schema , batches(2 : end ), UniformOutput= false );
159
159
idx = cellfun(@(other ) ~isequal(firstSchema , other ), otherSchemas , UniformOutput= true );
160
160
inconsistentSchemaIndex = find(idx , 1 ," first" );
161
- if ~isempty(badIndex )
162
- badIndex = badIndex + 1 ;
161
+ if ~isempty(inconsistentSchemaIndex )
162
+ inconsistentSchemaIndex = inconsistentSchemaIndex + 1 ;
163
163
expectedSchema = arrow .tabular .internal .display .getSchemaString(firstSchema );
164
- inconsistentSchema = arrow .tabular .internal .display .getSchemaString(batches{inconsistentSchemaIndex }.Schema);
165
- msg = " Schema of RecordBatch %d is\n\n\t%s\n\nExpected RecordBatch Schema to be\n\n\t%s" ;
166
- msg = compose(msg , badIndex , unexpectedSchema , expectedSchema );
164
+ inconsistentSchema = arrow .tabular .internal .display .getSchemaString(batches{inconsistentSchemaIndex }.Schema);
165
+ msg = " All RecordBatches must have a the same Schema.\n\nSchema of RecordBatch %d is\n\n\t%s\n\nExpected RecordBatch Schema to be\n\n\t%s" ;
166
+ msg = compose(msg , inconsistentSchemaIndex , inconsistentSchema , expectedSchema );
167
167
error(" arrow:Table:FromRecordBatches:InconsistentSchema" , msg );
168
168
end
169
169
end
You can’t perform that action at this time.
0 commit comments