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
I think this is some problem with the parser, and perhaps not yet supported.
The query will be performed correctly if replace double quote with single quote
select column1, unnest(column2)['b'] from lists_of_structs_table;
The query with double quote will fail for normal queries, not just unnest
Oh 🤦, I think I've tripped over the quoting then. I can never remember which is the string and which one is the identifier in SQL. In that case, the error message is actually correct, since my query tries to index the struct with a dynamic string from column b, which doesn't exist. The intention was to index with a static string 'b' (as you suggested). So that's not actually a bug.
Describe the bug
See reproducer.
To Reproduce
Use the following sqllogictest:
Expected behavior
Since
unnest
creates a struct column, I feel that this should work.Additional context
Tested w/ 5391c98 .
The text was updated successfully, but these errors were encountered: