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 into
apache: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 into
apache:masterfrom
wesm:ARROW-1384

Conversation

@wesm

@wesmwesm commented Aug 22, 2017

Copy link
Copy Markdown
Member

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
Copy Markdown
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
Copy Markdown
MemberAuthor

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
Copy Markdown
Contributor

+1 LGTM

@wesm
wesm deleted the ARROW-1384 branch August 22, 2017 20:09
Sign up for freeto 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

@wesm@pcmoritz