You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
That's expected behavior, but we have to formally decided on it (I think).
The result type of your query is [{a = {b = text} }]. Because tuples are not a thing in all SQL dialects (and hard to work with even where they are supported), we flatten the resulting type into this [{b = text}].
A few more examples:
[{a = {b = text, c = int}}] -> [{b = text, c = int}],
[{a = int, b = {c = text}}] -> [{a = int, c = text}],
[{a = {b = text}, c = {d = int}}] -> [{b = text, d = int}].
There is an alternative behavior that we could implement:
[{a = {b = text} }] -> [{`a.b` = text}]
A bit more explicit.
I think that one of the changes on my branch is a change to this second behavior.
What happened?
It compile a query but
a
is no where in the output. It probably shouldn't compile at all.PRQL input
SQL output
Expected SQL output
No response
MVCE confirmation
Anything else?
No response
The text was updated successfully, but these errors were encountered: