-
Notifications
You must be signed in to change notification settings - Fork 25k
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
SQL: normalized keywords shouldn't be allowed for groupings and sorting #35203
Labels
Comments
Pinging @elastic/es-search-aggs |
michaelbaamonde
added
v7.0.0-rc1
and removed
v7.0.0
v6.6.2
v6.7.0
v7.0.0-rc1
v7.2.0
v8.0.0
labels
Mar 25, 2019
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
A normalized
keyword
field can potentially change the original value of a field, but SQL works with exact values. Probably as part of #34718, the restriction was lifted, as field_caps API can tell if a field is aggregatable/searchable, but not if it's normalized or a simplekeyword
.As such, in the following scenario:
With a query like
{ "query" : "select user from test group by user" }
one gets back:And for
{ "query" : "select user2 from test group by user2" }
there are results returned where, in fact, ES SQL should return an error.The text was updated successfully, but these errors were encountered: