-
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
QL: Remove constant_keyword field type #60524
Conversation
Pinging @elastic/es-ql (:Query Languages/SQL) |
…o 58471_refactoring
@elasticmachine run elasticsearch-ci/packaging-sample-windows |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM and the tests I've run work as expected.
However, there is a theoretical possibility that an old driver (say 7.8) will send a request with a parameter of this type (to a 7.10 server). With the PR we'd reject the request which does break the backwards compatibility strictly speaking. But I believe this is such a small corner case and so unlikely that it's negligible.
Looking deeper into the issue, the statement above is wrong and I think we could still safely merge the PR (past the PR conflict resolution).
We don't export a "ConstantKeyword" class in our JDBC driver and the the JDBC interface won't take a type name when setting parameters, but only a The only way to send a |
LGTM |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM
Both "wildcard" and "constant_keyword" need to return "keyword" as mapped type.
@elasticmachine update branch |
@elasticmachine run elasticsearch-ci/packaging-sample-unix |
@elasticmachine update branch |
* Remove constant_keyword field type (cherry picked from commit d9ba96c)
`constant_keyword` removed as distinct type from SQL in elastic#60524.
* Remove constant_keyword from SQL docs `constant_keyword` removed as distinct type from SQL in #60524. Co-authored-by: James Rodewig <40268737+jrodewig@users.noreply.github.com>
Removes constant_keyword field type from *QL, after the keyword family of fields has been added to Elasticsearch.
Addresses #58471.