Skip to content
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

[SPARK-51687][SQL] Pushdown filters with TIME values to parquet #50473

Closed
wants to merge 5 commits into from

Conversation

MaxGekk
Copy link
Member

@MaxGekk MaxGekk commented Apr 1, 2025

What changes were proposed in this pull request?

In the PR, I propose to support pushdown filters over TIME columns in the parquet datasource. In particular, pushdown the following operators: ===, <=>, =!=, isNull, isNotNull, >, >=, <, <=.

Why are the changes needed?

The PR #50389 supported the TIME type in the Parquet datasource as INT64 but filters with such values are not pushed down. So, comparing to primitive types, the TIME type can suffer from worse performance in read. This PR aims to solve the issue, and achieve feature parity with other types.

Does this PR introduce any user-facing change?

No, the changes might influence on performance of the parquet datasource only.

How was this patch tested?

By running new tests in ParquetFilterSuite:

$ build/sbt clean "test:testOnly *ParquetV1FilterSuite"
$ build/sbt clean "test:testOnly *ParquetV2FilterSuite"

Was this patch authored or co-authored using generative AI tooling?

No.

@github-actions github-actions bot added the SQL label Apr 1, 2025
@MaxGekk MaxGekk changed the title [WIP][SQL] Pushdown filters with TIME values to parquet [WIP][SPARK-51687][SQL] Pushdown filters with TIME values to parquet Apr 2, 2025
@MaxGekk MaxGekk marked this pull request as ready for review April 2, 2025 07:51
@MaxGekk MaxGekk changed the title [WIP][SPARK-51687][SQL] Pushdown filters with TIME values to parquet [SPARK-51687][SQL] Pushdown filters with TIME values to parquet Apr 2, 2025
@MaxGekk
Copy link
Member Author

MaxGekk commented Apr 2, 2025

Merging to master. Thank you, @yaooqinn for review.

@MaxGekk MaxGekk closed this in beb509f Apr 2, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants