-
Notifications
You must be signed in to change notification settings - Fork 25.2k
Rename string_field script context to keyword_field #71854
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
Rename string_field script context to keyword_field #71854
Conversation
Up until now, the name of the script contexts that runtime fields use was internal only. They recently got exposed through the painless execute API. This commit fixes the discrepancy between the field type used to define a runtime field of type keyword and the script context needed to simulate its corresponding script: string_field should be keyword_field.
Pinging @elastic/es-core-infra (Team:Core/Infra) |
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.
I figure if we end up adding other string-valued runtime fields we can figure out what to do then.
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.
Thanks for updating this!
the rest-compat tests here are expected to fail, because the tests from 7.x use string_field that we are renaming to keyword_field in master with this change. This is ok though because painless execute does not support the runtime fields context in any public release, so we are ok breaking this between 7.x and master. |
The script context is being renamed as part of elastic#71854, which is not a breaking change as we have not released a public version that supports such new context in the painless execute API. We will re-enable these tests once the linked PR is merged.
The script context is being renamed as part of #71854, which is not a breaking change as we have not released a public version that supports such new context in the painless execute API. We will re-enable these tests once the linked PR is merged.
run elasticsearch-ci/rest-compat |
Up until now, the name of the script contexts that runtime fields use was internal only. They recently got exposed through the painless execute API. This commit fixes the discrepancy between the field type used to define a runtime field of type keyword and the script context needed to simulate its corresponding script: string_field should be keyword_field.
Up until now, the name of the script contexts that runtime fields use was internal only. They recently got exposed through the painless execute API. This commit fixes the discrepancy between the field type used to define a runtime field of type keyword and the script context needed to simulate its corresponding script: string_field should be keyword_field.
Up until now, the name of the script contexts that runtime fields use was internal only. They recently got exposed through the painless execute API. This commit fixes the discrepancy between the field type used to define a runtime field of type keyword and the script context needed to simulate its corresponding script: string_field should be keyword_field.