-
Notifications
You must be signed in to change notification settings - Fork 1.3k
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
Speed up arrow_statistics test #10735
Conversation
/// The parquet file reader | ||
reader: ParquetRecordBatchReaderBuilder<File>, | ||
reader: &'a ParquetRecordBatchReaderBuilder<File>, |
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.
the change is to reuse the reader rather than recreating it each time
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.
👍
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.
Looks good to me 👍
These tests run faster on my machine, taking 6 seconds versus 15 seconds.
We got lots of statistics PRs so conflicts are unavoidable |
Thanks for the heads up @comphead -- I plan to get the other statistics tests in first and then I will merge / fixup this one |
THe other statistics PRs have been merged and I resolved conflicts in this branch. |
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 thanks @alamb
* Speed up arrow_statistics test * resolve logical conflicts
Which issue does this PR close?
Part of #10453
Rationale for this change
Currently arrow_statistics take multiple seconds on my local machine (see screenshot)

This is because they make the same parquet file over and over again.
What changes are included in this PR?
Update the test to reuse the created parquet files
Are these changes tested?
They are all tests. Now they go 2x faster on my local machine:
Are there any user-facing changes?
No this is all tests