Open wanliAlex opened 7 months ago
Is your feature request related to a problem? Please describe. The in filtering operation is not supported in sameElement and the error message is misleading:
in
sameElement
For example, if i have a field defined in schema as:
field test_fields type map<string, string> { indexing: summary struct-field key { indexing : attribute attribute: fast-search rank: filter } struct-field value { indexing : attribute attribute: fast-search rank: filter } }
And we have a yql:
'yql': 'select * from test_index where TRUE AND ((test_fields contains sameElement(key contains "test", value in ("test_1", "test_2"))))'
it will return an error
'Could not create query from YQL: The in operator is only supported for integer and string fields. The field value is not of these types',
Describe the solution you'd like I hope in operation is supported with sameElement
Describe alternatives you've considered n/a
Additional context n/a
This sounds like a bug. Could you supply your schema definition ?
I have updated my description with the schema
Is your feature request related to a problem? Please describe. The
in
filtering operation is not supported insameElement
and the error message is misleading:For example, if i have a field defined in schema as:
And we have a yql:
it will return an error
Describe the solution you'd like I hope
in
operation is supported withsameElement
Describe alternatives you've considered n/a
Additional context n/a