Skip to content

Conversation

@carols10cents
Copy link
Contributor

This PR contains a series of refactorings to extract code from the IPC FileWriter and StreamWriter that generates EncodedData instances. I highly recommend reviewing commit-by-commit, I tried to make the changes fairly mechanical and easy to understand at each step.

With those refactorings, it becomes easier to reuse the code with Flight too, so that when we're generating FlightData for a RecordBatch, we get the FlightData for the batch's dictionaries too.

This will help in getting the Flight integration tests that include dictionaries to pass... I'm also having some unrelated protocol problems over in this PR I'm working on but this work will help there.

@github-actions
Copy link

github-actions bot commented Dec 3, 2020

Copy link
Contributor

@nevi-me nevi-me left a comment

Choose a reason for hiding this comment

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

This looks great, have 1 comment that needs addressing.

@carols10cents carols10cents force-pushed the refactor-file-stream-writer branch from dca9d09 to 78a913a Compare December 7, 2020 15:03
Copy link
Contributor

@alamb alamb left a comment

Choose a reason for hiding this comment

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

For what it is worth, I reviewed this code and while I am not an expert in Flight so can't speak for the correctness, the structure seems clear and readable. Nice work @carols10cents !

message.add_header_type(ipc::MessageHeader::Schema);
message.add_bodyLength(0);
message.add_header(schema);
// TODO: custom metadata
Copy link
Contributor

Choose a reason for hiding this comment

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

We should attach JIRAs to the TODOs so we don't lose track of them

Copy link
Contributor

@nevi-me nevi-me left a comment

Choose a reason for hiding this comment

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

LGTM

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants