Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

PARQUET-633: Add version to WriterProperties #119

Closed
wants to merge 2 commits into from

Conversation

xhochy
Copy link
Member

@xhochy xhochy commented Jun 16, 2016

Yet only exposing the property publicly so I can make use of it in Arrow.

Also used the interface design from parquet-mr to make the WriterProperties immutable so we can safely pass references of them around once they have been passed to a ParquetFileWriter.

@@ -55,7 +55,7 @@ ParquetFileWriter::~ParquetFileWriter() {

std::unique_ptr<ParquetFileWriter> ParquetFileWriter::Open(
std::shared_ptr<OutputStream> sink, std::shared_ptr<GroupNode>& schema,
MemoryAllocator* allocator) {
MemoryAllocator* allocator, std::shared_ptr<WriterProperties> properties) {
Copy link
Member

Choose a reason for hiding this comment

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

const reference here

@wesm
Copy link
Member

wesm commented Jun 16, 2016

Cool, I'm +1 on immutability. Left a few comments around avoiding unnecessary shared pointer copies, but otherwise this can go in

@wesm
Copy link
Member

wesm commented Jun 17, 2016

Excellent, thank you. +1

@asfgit asfgit closed this in 378167e Jun 17, 2016
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
2 participants