-
Notifications
You must be signed in to change notification settings - Fork 5.7k
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
[Data] Use sampled fragments to estimate Parquet reader batch size #45749
Conversation
Signed-off-by: Balaji Veeramani <[email protected]>
Signed-off-by: Balaji Veeramani <[email protected]>
sample_info.actual_bytes_per_row is None | ||
or sample_info.estimated_bytes_per_row is None | ||
): | ||
return PARQUET_ENCODING_RATIO_ESTIMATE_LOWER_BOUND |
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.
if some samples are None while some are not, should we drop the None values? I.E., only fallback to this lower bound if all samples are None.
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.
I matched the behavior of the existing implementation, but that makes sense to me.
@c21 wdyt (I think you wrote the original implementation)? I can address this in a follow-up PR
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.
yes make sense to me.
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.
late LGTM
…ay-project#45749) ParquetDatasource uses fetched metadata to determine the Parquet reader batch size. If the metadata provider doesn't provide metadata, ParquetDatasource uses a default value of 10,000 rows. While this value might be reasonable for tabular data, the default value can lead to poor performance or even errors if each row is large. To avoid this issue, this PR updates the implementation to use the sampled fragments to determine the batch size. Signed-off-by: Balaji Veeramani <[email protected]> Signed-off-by: Ryan O'Leary <[email protected]>
…ay-project#45749) ParquetDatasource uses fetched metadata to determine the Parquet reader batch size. If the metadata provider doesn't provide metadata, ParquetDatasource uses a default value of 10,000 rows. While this value might be reasonable for tabular data, the default value can lead to poor performance or even errors if each row is large. To avoid this issue, this PR updates the implementation to use the sampled fragments to determine the batch size. Signed-off-by: Balaji Veeramani <[email protected]> Signed-off-by: yucai <[email protected]>
…ay-project#45749) ParquetDatasource uses fetched metadata to determine the Parquet reader batch size. If the metadata provider doesn't provide metadata, ParquetDatasource uses a default value of 10,000 rows. While this value might be reasonable for tabular data, the default value can lead to poor performance or even errors if each row is large. To avoid this issue, this PR updates the implementation to use the sampled fragments to determine the batch size. Signed-off-by: Balaji Veeramani <[email protected]> Signed-off-by: Ryan O'Leary <[email protected]>
…ay-project#45749) ParquetDatasource uses fetched metadata to determine the Parquet reader batch size. If the metadata provider doesn't provide metadata, ParquetDatasource uses a default value of 10,000 rows. While this value might be reasonable for tabular data, the default value can lead to poor performance or even errors if each row is large. To avoid this issue, this PR updates the implementation to use the sampled fragments to determine the batch size. Signed-off-by: Balaji Veeramani <[email protected]> Signed-off-by: yucai <[email protected]>
…ay-project#45749) ParquetDatasource uses fetched metadata to determine the Parquet reader batch size. If the metadata provider doesn't provide metadata, ParquetDatasource uses a default value of 10,000 rows. While this value might be reasonable for tabular data, the default value can lead to poor performance or even errors if each row is large. To avoid this issue, this PR updates the implementation to use the sampled fragments to determine the batch size. Signed-off-by: Balaji Veeramani <[email protected]> Signed-off-by: Richard Liu <[email protected]>
Why are these changes needed?
ParquetDatasource
uses fetched metadata to determine the Parquet reader batch size. If the metadata provider doesn't provide metadata,ParquetDatasource
uses a default value of 10,000 rows. While this value might be reasonable for tabular data, the default value can lead to poor performance or even errors if each row is large. To avoid this issue, this PR updates the implementation to use the sampled fragments to determine the batch size.Related issue number
Checks
git commit -s
) in this PR.scripts/format.sh
to lint the changes in this PR.method in Tune, I've added it in
doc/source/tune/api/
under thecorresponding
.rst
file.