-
Notifications
You must be signed in to change notification settings - Fork 1.8k
ff: Preserve cached plan information when pushing projection #17129
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 |
|---|---|---|
|
|
@@ -543,3 +543,35 @@ query TT | |
| select val, part from t_pushdown where part = val AND part = 'a'; | ||
| ---- | ||
| a a | ||
|
|
||
| statement ok | ||
| COPY ( | ||
| SELECT | ||
| '00000000000000000000000000000001' AS trace_id, | ||
| '2023-10-01 00:00:00'::timestamptz AS start_timestamp, | ||
| 'prod' as deployment_environment | ||
| ) | ||
| TO 'data/1.parquet'; | ||
|
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. BTW this writes to I have a fix and will forward port it to main, but wanted to drop a note here in case anyone else saw it |
||
|
|
||
| statement ok | ||
| COPY ( | ||
| SELECT | ||
| '00000000000000000000000000000002' AS trace_id, | ||
| '2024-10-01 00:00:00'::timestamptz AS start_timestamp, | ||
| 'staging' as deployment_environment | ||
| ) | ||
| TO 'data/2.parquet'; | ||
|
|
||
| statement ok | ||
| CREATE EXTERNAL TABLE t1 STORED AS PARQUET LOCATION 'data/'; | ||
|
|
||
| statement ok | ||
| SET datafusion.execution.parquet.pushdown_filters = true; | ||
|
|
||
| query T | ||
| SELECT deployment_environment | ||
| FROM t1 | ||
| WHERE trace_id = '00000000000000000000000000000002' | ||
| ORDER BY start_timestamp, trace_id; | ||
| ---- | ||
| staging | ||
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 cry every time I see a downcast of a trait to a specific type. I understand why it's necessary in this case, I think the existing API is to blame, it's worth moving forward with this to fix the (pretty bad IMO) bug BUT this is the sort of thing I hope a future refactor will avoid the need for.
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.
maybe it is worth making a ticket to track the issue / proposed solution if there is not one already
Uh oh!
There was an error while loading. Please reload this page.
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.
good point, it's #15952, should have put that in the code comment