-
Notifications
You must be signed in to change notification settings - Fork 1.9k
Fix predicate simplification for incompatible types in push_down_filter #17521
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
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -395,3 +395,28 @@ order by t1.k, t2.v; | |
| ---- | ||
| 1 1 1 | ||
| 10000000 10000000 10000000 | ||
|
|
||
| # Regression test for https://github.com/apache/datafusion/issues/17512 | ||
|
|
||
| query I | ||
| COPY ( | ||
| SELECT arrow_cast('2025-01-01T00:00:00Z'::timestamptz, 'Timestamp(Microsecond, Some("UTC"))') AS start_timestamp | ||
| ) | ||
| TO 'test_files/scratch/push_down_filter/17512.parquet' | ||
| STORED AS PARQUET; | ||
| ---- | ||
| 1 | ||
|
|
||
| statement ok | ||
| CREATE EXTERNAL TABLE records STORED AS PARQUET LOCATION 'test_files/scratch/push_down_filter/17512.parquet'; | ||
|
|
||
| query I | ||
| SELECT 1 | ||
| FROM ( | ||
| SELECT start_timestamp | ||
| FROM records | ||
| WHERE start_timestamp <= '2025-01-01T00:00:00Z'::timestamptz | ||
| ) AS t | ||
| WHERE t.start_timestamp::time < '00:00:01'::time; | ||
|
Comment on lines
+418
to
+420
Member
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. It looks like one predicate is on
Contributor
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more.
Yes I agree (assuming
That is my understanding of what this PR does. I am not sure if you are just confirming this change or if you are proposing / suggesting something more
Member
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more.
At the time of writing it was a proposal.
Contributor
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. makes sense -- thank you |
||
| ---- | ||
| 1 | ||
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.
👍