-
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
ESQL: Fix loading constant_keyword when unset #101496
ESQL: Fix loading constant_keyword when unset #101496
Conversation
When a `constant_keyword` field is first created you don't *have* to set it's value - it'll default to `null` and then take on the value of the first document that contains the field. Our block loading code didn't like this state and would fail to run the query. This fixes that.
This is labeled |
Pinging @elastic/es-analytics-geo (Team:Analytics) |
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. Thank you, Nik!
- "No limit defined, adding default limit of [500]" | ||
esql.query: | ||
body: | ||
query: 'from test' |
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.
maybe just add limit N
to the query to avoid the warning?
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.
++
When a
constant_keyword
field is first created you don't have to set it's value - it'll default tonull
and then take on the value of the first document that contains the field. Our block loading code didn't like this state and would fail to run the query. This fixes that.Closes #101455