-
Notifications
You must be signed in to change notification settings - Fork 1.4k
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
Different unnests on plan_to_sql
are merged
#15128
Comments
fyi @goldmedal |
The easiest fix I can think of is to add info about the location of the unnest in the |
I'm not sure about that. The problem is here:
If If we disable SELECT UNNEST([1, 2, 3, 4]) AS "UNNEST(make_array(Int64(1),Int64(2),Int64(3),Int64(4)))" FROM (SELECT UNNEST([1, 2, 3]) AS "UNNEST(make_array(Int64(1),Int64(2),Int64(3)))") So, another option, |
I've been thinking about #15159 - arguably a dirty fix, but I can't come up with anything better. Do you need that feature for anything other than |
Thanks. I think it may be the only way we can do it in the unparser side. 🤔 |
Describe the bug
While working on #14781 I noticed that
UNNEST
is being transformed to sql incorrectly. For example,are transformed into
which are both wrong.
To Reproduce
Expected behavior
Unnests should be preserved
Additional context
I think this is related to #13660
While fixing this, it would be good to not rely on having double alias, e.g.
Alias(Alias(Column(...
as I plan to remove it in #14781The text was updated successfully, but these errors were encountered: