Skip to content
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

Support in filtering operation in sameElement #30711

Open
wanliAlex opened this issue Mar 22, 2024 · 2 comments
Open

Support in filtering operation in sameElement #30711

wanliAlex opened this issue Mar 22, 2024 · 2 comments
Assignees
Milestone

Comments

@wanliAlex
Copy link

wanliAlex commented Mar 22, 2024

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:

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

@baldersheim
Copy link
Member

This sounds like a bug. Could you supply your schema definition ?

@wanliAlex
Copy link
Author

This sounds like a bug. Could you supply your schema definition ?

I have updated my description with the schema

@kkraune kkraune added this to the later milestone Apr 3, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants