-
Notifications
You must be signed in to change notification settings - Fork 1.3k
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
Recursive unnest
misbehave if used together with another unnest on different column
#11689
Comments
This is maybe because of the logical plan generated as
While the correct plan may need to look like
Meaning all the necessary unnest will have to happen inside one logical node This bring the needs for the following items:
For the second items, we have to be aware of the expr that has recursive unnest, but they are not consecutive, for example this expr:
where struct_arr_col has type List<Struct<List<List>>> for example |
take |
unnest
misbehave if used together with another unnest on different column
Describe the bug
During the implementation of this issue I found another problem
Given this slt
The output from Datafusion is
To Reproduce
No response
Expected behavior
Datafusion returns correct result set
Example in Duckdb
Additional context
No response
The text was updated successfully, but these errors were encountered: