Skip to content

Commit

Permalink
The metadata is a Message, not a RecordBatch
Browse files Browse the repository at this point in the history
Change-Id: I5c165371168a70308c86a4127ecfbd7edfff2f88
  • Loading branch information
wesm committed Jan 20, 2017
1 parent e3af434 commit c4059e6
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 4 deletions.
2 changes: 1 addition & 1 deletion integration/integration_test.py
Original file line number Diff line number Diff line change
Expand Up @@ -648,7 +648,7 @@ def get_static_json_files():


def run_all_tests(debug=False):
testers = [JavaTester(debug=debug), CPPTester(debug=debug)]
testers = [CPPTester(debug=debug), JavaTester(debug=debug)]
static_json_files = get_static_json_files()
generated_json_files = get_generated_json_files()
json_files = static_json_files + generated_json_files
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -183,9 +183,10 @@ public static ArrowRecordBatch deserializeRecordBatch(ReadChannel in, ArrowBlock

ArrowBuf metadataBuffer = buffer.slice(4, block.getMetadataLength() - 4);

// Read the metadata.
RecordBatch recordBatchFB =
RecordBatch.getRootAsRecordBatch(metadataBuffer.nioBuffer().asReadOnlyBuffer());
Message messageFB =
Message.getRootAsMessage(metadataBuffer.nioBuffer().asReadOnlyBuffer());

RecordBatch recordBatchFB = (RecordBatch) messageFB.header(new RecordBatch());

// Now read the body
final ArrowBuf body = buffer.slice(block.getMetadataLength(),
Expand Down

0 comments on commit c4059e6

Please sign in to comment.