Skip to content

ARROW-1384: [C++] Add SerializeRecordBatch API for writing a record batch as an IPC message to a new buffer#984

Closed
wesm wants to merge 2 commits intoapache:masterfrom
wesm:ARROW-1384
Closed

ARROW-1384: [C++] Add SerializeRecordBatch API for writing a record batch as an IPC message to a new buffer#984
wesm wants to merge 2 commits intoapache:masterfrom
wesm:ARROW-1384

Conversation

@wesm
Copy link
Member

@wesm wesm commented Aug 22, 2017

There's also a little bit of API scrubbing as I went through this code.

…r arguments const

Change-Id: I550d70f4fe30e9f3e8050889c409ca5293708477
std::shared_ptr<RecordBatchStreamWriter> writer;
RETURN_NOT_OK(RecordBatchStreamWriter::Open(dst, batches[0]->schema(), &writer));
for (const auto& batch : batches) {
// allow sizes > INT32_MAX
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Consider adding a DCHECK_EQ(batches[0]->schema(), batch->schema()) or similar

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

done

Change-Id: If097de5f2823a81b7d0f04dfe3712d2b9686c795
@pcmoritz
Copy link
Contributor

+1 LGTM

@asfgit asfgit closed this in 3c70ff1 Aug 22, 2017
@wesm wesm deleted the ARROW-1384 branch August 22, 2017 20:09
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants