-
Notifications
You must be signed in to change notification settings - Fork 1k
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
push down unnest filter only on non-unnest column #10989
Comments
It seems to be supported on the main branch. DataFusion CLI v39.0.0
> create table t (a int[]) as values ([1,2,3]), ([4,5,6]);
0 row(s) fetched.
Elapsed 0.030 seconds.
> select ua from (select unnest(a) as ua from t) where ua > 3;
+----+
| ua |
+----+
| 4 |
| 5 |
| 6 |
+----+
3 row(s) fetched.
Elapsed 0.009 seconds. |
I still get the error 🤔 |
Ok, my bad. It is introduced by the latest PR #10974 |
At the point of
Instead of checking whether there is But ideally logical plan optimization should be optional, which means even the optimization step is skipped, we still expect to get the result. Based on this, it might not be a good idea to move the conversion to optmization step 🤔 |
Is your feature request related to a problem or challenge?
In #10974, we push down unnest filter what ever the filter plan is, but if we filter on unnest column, we should not push down the filter plan since the unnest column is not evaluated yet.
The expected result is
Describe the solution you'd like
No response
Push down filter plan only if the column is non-unnest.
Describe alternatives you've considered
No response
Additional context
No response
The text was updated successfully, but these errors were encountered: