Skip to content

Add support for parquet_writer_version session property#10573

Closed
svm1 wants to merge 1 commit intofacebookincubator:mainfrom
svm1:parq_rebase
Closed

Add support for parquet_writer_version session property#10573
svm1 wants to merge 1 commit intofacebookincubator:mainfrom
svm1:parq_rebase

Conversation

@svm1
Copy link
Copy Markdown
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
@netlify
Copy link
Copy Markdown

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

@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
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.

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