-
Notifications
You must be signed in to change notification settings - Fork 29k
[SPARK-31785][SQL][TESTS] Add a helper function to test all parquet readers #28598
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
|
@cloud-fan @mswit-databricks @adrian-ionescu Please, review this PR. |
| withParquetReaders("parquet-mr", "vectorized-oss")(code) | ||
| } | ||
|
|
||
| def withAllParquetReaders(code: => Unit): Unit = { |
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.
can we simplify it?
def withAllParquetReaders(code: => Unit): Unit = {
// test the row-based reader
withSQLConf(SQLConf.PARQUET_VECTORIZED_READER_ENABLED.key -> "false")(code)
// test the vectorized reader
withSQLConf(SQLConf.PARQUET_VECTORIZED_READER_ENABLED.key -> "true")(code)
}
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.
done
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 would say code- > func but no big deal.
|
Test build #122930 has finished for PR 28598 at commit
|
|
Test build #122936 has finished for PR 28598 at commit
|
|
Merged to master and branch-3.0. |
…eaders ### What changes were proposed in this pull request? Add `withAllParquetReaders` to `ParquetTest`. The function allow to run a block of code for all available Parquet readers. ### Why are the changes needed? 1. It simplifies tests 2. Allow to test all parquet readers that could be available in projects based on Apache Spark. ### Does this PR introduce _any_ user-facing change? No ### How was this patch tested? By running affected test suites. Closes #28598 from MaxGekk/add-withAllParquetReaders. Authored-by: Max Gekk <[email protected]> Signed-off-by: HyukjinKwon <[email protected]> (cherry picked from commit 60118a2) Signed-off-by: HyukjinKwon <[email protected]>
What changes were proposed in this pull request?
Add
withAllParquetReaderstoParquetTest. The function allow to run a block of code for all available Parquet readers.Why are the changes needed?
Does this PR introduce any user-facing change?
No
How was this patch tested?
By running affected test suites.