Skip to content

Fix parquet data page offset calculation in parquet writer#17295

Merged
pettyjamesm merged 1 commit intoprestodb:masterfrom
v-jizhang:fix-parquet-data-page-offset
Feb 18, 2022
Merged

Fix parquet data page offset calculation in parquet writer#17295
pettyjamesm merged 1 commit intoprestodb:masterfrom
v-jizhang:fix-parquet-data-page-offset

Conversation

@v-jizhang
Copy link
Copy Markdown
Contributor

Cherry-pick of trinodb/trino#10722

The ParquetWriter::flush method calls int OutputStreamSliceOutput::size()
to get the data page offset which is a long, thus flushing fails trying
to write files larger than ~2 GB with an integer overflow exception.

Co-authored-by: Saulius Valatka saulius.vl@gmail.com

== RELEASE NOTES ==

General Changes
* Fix parquet data page offset calculation in parquet writer

Cherry-pick of trinodb/trino#10722

The ParquetWriter::flush method calls int OutputStreamSliceOutput::size()
to get the data page offset which is a long, thus flushing fails trying
to write files larger than ~2 GB with an integer overflow exception.

Co-authored-by: Saulius Valatka <saulius.vl@gmail.com>
@v-jizhang
Copy link
Copy Markdown
Contributor Author

Failed test is unrelated.

@pettyjamesm pettyjamesm self-requested a review February 18, 2022 16:27
Copy link
Copy Markdown
Contributor

@pettyjamesm pettyjamesm left a comment

Choose a reason for hiding this comment

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

Looks good to me, let's see if we can get a green build

@pettyjamesm pettyjamesm merged commit 4d8aad1 into prestodb:master Feb 18, 2022
@varungajjala varungajjala mentioned this pull request Mar 22, 2022
9 tasks
@asjadsyed asjadsyed mentioned this pull request Mar 23, 2022
9 tasks
@asjadsyed asjadsyed mentioned this pull request Apr 1, 2022
8 tasks
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants