-
Notifications
You must be signed in to change notification settings - Fork 1.2k
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
Add support for parquet_writer_version
session property
#11151
base: main
Are you sure you want to change the base?
Conversation
✅ Deploy Preview for meta-velox canceled.
|
40a6c6c
to
4982e1f
Compare
@yingsu00 @majetideepak Thank you for reviewing - made all necessary changes, please take a look! |
@@ -921,6 +921,21 @@ std::optional<std::string> getTimestampTimeZone( | |||
return std::nullopt; | |||
} | |||
|
|||
parquet::WriterOptions::DataPageVersion getParquetDataPageVersion( |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The changes in this file have to move to the parquet::WriterOptions
inside parquet/writer/Writer.h
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Done.
// Set parquet datapage version and write data - then read to ensure the | ||
// property took effect. | ||
const auto testDataPageVersion = | ||
[&](facebook::velox::parquet::WriterOptions::DataPageVersion |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Can remove facebook::velox::
here and at other places.
Allow the Presto session property
parquet_writer_version
, which is currently ignored by Velox, to toggle the parquet writer datapage version (V1 or V2). The value can be set as a session property or can be provided in the Hive config. Defaults to V2.