-
Notifications
You must be signed in to change notification settings - Fork 3.7k
[opt](parquet-writer) Specify the row group size when writing data to Parquet files. #35081
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
Conversation
|
Thank you for your contribution to Apache Doris. Since 2024-03-18, the Document has been moved to doris-website. |
|
run buildall |
|
clang-tidy review says "All clean, LGTM! 👍" |
|
TeamCity be ut coverage result: |
|
run p0 |
05dc722 to
c013580
Compare
|
run buildall |
|
clang-tidy review says "All clean, LGTM! 👍" |
|
TeamCity be ut coverage result: |
TPC-H: Total hot run time: 41482 ms |
TPC-DS: Total hot run time: 169074 ms |
ClickBench: Total hot run time: 30.56 s |
morningman
left a comment
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.
LGTM
|
PR approved by at least one committer and no changes requested. |
|
PR approved by anyone and no changes requested. |
|
This solution will consume a lot of memory, so we need to discuss a better solution. @BePPPower |
c013580 to
d9a2a82
Compare
|
run buildall |
|
clang-tidy review says "All clean, LGTM! 👍" |
|
TeamCity be ut coverage result: |
|
run performance |
morningman
left a comment
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.
LGTM
|
PR approved by at least one committer and no changes requested. |
kaka11chen
left a comment
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.
LGTM
| builder.created_by( | ||
| fmt::format("{}({})", doris::get_short_version(), parquet::DEFAULT_CREATED_BY)); | ||
| _parquet_writer_properties = builder.build(); | ||
| _parquet_writer_properties = builder.created_by("DorisBE")->build(); |
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.
why need this?
TPC-H: Total hot run time: 41257 ms |
TPC-DS: Total hot run time: 172761 ms |
ClickBench: Total hot run time: 30.36 s |
… Parquet files. (apache#35081) Previously, each Block data would write a row group every time when data was written to a Parquet file. Using Arrow's `WriteRecordBatch` interface allows caching data to be written to Parquet. We can control the size of the row group cache." Currently, simply accumulate the size of the blocks to determine the cache size.
… Parquet files. (#35081) Previously, each Block data would write a row group every time when data was written to a Parquet file. Using Arrow's `WriteRecordBatch` interface allows caching data to be written to Parquet. We can control the size of the row group cache." Currently, simply accumulate the size of the blocks to determine the cache size.
Previously, each Block data would write a row group every time when data was written to a Parquet file.
Which causing too many row group in a single parquet file. The the reading performance on this kind of file
is very bad.
This PR use Arrow's
WriteRecordBatchinterface, which allows caching data to be written to Parquet.We can control the size of the row group cache."
Currently, simply accumulate the size of the blocks to determine the cache size.