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

Add support for parquet_writer_version session property #10573

Closed
wants to merge 1 commit into from

Conversation

svm1
Copy link
Collaborator

@svm1 svm1 commented Jul 25, 2024

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.

@facebook-github-bot facebook-github-bot added the CLA Signed This label is managed by the Facebook bot. Authors need to sign the CLA before a PR can be reviewed. label Jul 25, 2024
Copy link

netlify bot commented Jul 25, 2024

Deploy Preview for meta-velox canceled.

Name Link
🔨 Latest commit ddd4462
🔍 Latest deploy log https://app.netlify.com/sites/meta-velox/deploys/66bfcbc71e872c00087fdbca

velox/dwio/common/Options.h Outdated Show resolved Hide resolved
@svm1 svm1 force-pushed the parq_rebase branch 2 times, most recently from c422238 to 7c619ce Compare July 31, 2024 20:22
@svm1 svm1 marked this pull request as ready for review July 31, 2024 20:22
@svm1 svm1 requested a review from pedroerp July 31, 2024 20:23
velox/dwio/parquet/tests/writer/ParquetWriterTest.cpp Outdated Show resolved Hide resolved
velox/dwio/parquet/writer/Writer.cpp Outdated Show resolved Hide resolved
auto parquetDataPageVersionString =
getParquetDataPageVersion(config, kParquetSessionDataPageVersion);

if (parquetDataPageVersionString == "PARQUET_1_0") {
Copy link
Contributor

Choose a reason for hiding this comment

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

maybe having a helper method with a switch to do the mapping, and throwing in case you get an invalid value instead of defaulting to v2?

parquetDataPageVersionString = toParquetDataPage(config);

Copy link
Collaborator Author

@svm1 svm1 Aug 2, 2024

Choose a reason for hiding this comment

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

I see what you mean, but also realized I could just be doing the mapping in getParquetDataPageVersion() now, in combination with validation, and directly return a arrow::ParquetDataPageVersion value. Let me know if that looks ok.

@svm1
Copy link
Collaborator Author

svm1 commented Oct 2, 2024

Reopened due to conflicts and rebasing - #11151

@svm1 svm1 closed this Oct 2, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
CLA Signed This label is managed by the Facebook bot. Authors need to sign the CLA before a PR can be reviewed.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants