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
For some reason, when we pass a query like SELECT func(a).x FROM t, the tokens . and x are ignored and it just parses as func(a) into a DataFusion expression. I couldn't reproduce with basic sqlparser. I think something is messed up with our dialect implementation.
This means in particular that array_element(list_struct, 1).y gets parsed into array_element(list_struct, 1), dropping the .y.
In #2966 we work around this by supporting field access by ['y'] instead.
The text was updated successfully, but these errors were encountered:
Adds support for accessing list items and struct fields with
subscripting: `x[0]` and `x['field_name']`. These can be chained.
Unfortunately there is an issue with our SQL parser related to using `.`
I wasn't able to figure out. Follow up issue here:
#2967
For some reason, when we pass a query like
SELECT func(a).x FROM t
, the tokens.
andx
are ignored and it just parses asfunc(a)
into a DataFusion expression. I couldn't reproduce with basicsqlparser
. I think something is messed up with our dialect implementation.This means in particular that
array_element(list_struct, 1).y
gets parsed intoarray_element(list_struct, 1)
, dropping the.y
.In #2966 we work around this by supporting field access by
['y']
instead.The text was updated successfully, but these errors were encountered: