-
Notifications
You must be signed in to change notification settings - Fork 24.9k
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: Enhance check for text fields without underlying keyword #38501
Labels
Comments
Pinging @elastic/es-search |
matriv
added a commit
to matriv/elasticsearch
that referenced
this issue
Feb 27, 2019
For functions: move checks for `text` fields without underlying `keyword` fields or with many of them (ambiguity) to the type resolution stage. For Order By/Group By: move checks to the `Verifier` to catch early before `QueryTranslator` or execution. Fixes: elastic#38501
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
For functions/operators than cannot operate on
text
fields move the validation that's currently happening in places likeQueryTranslator
toresolveType()
.Also avoid throwing an Exception from
exactAttribute()->TextEsField.getExactField()
method call, but instead introduce new method that has a proper return type that can be used for the validation.The text was updated successfully, but these errors were encountered: