Skip to content
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

Merged
merged 3 commits into from
Oct 29, 2023

Conversation

nik9000
Copy link
Member

@nik9000 nik9000 commented Oct 28, 2023

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.

Closes #101455

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.
@nik9000
Copy link
Member Author

nik9000 commented Oct 28, 2023

This is labeled non-issue because it's fixing a bug in unreleased code.

@elasticsearchmachine elasticsearchmachine added the Team:Analytics Meta label for analytical engine team (ESQL/Aggs/Geo) label Oct 28, 2023
@elasticsearchmachine
Copy link
Collaborator

Pinging @elastic/es-analytics-geo (Team:Analytics)

Copy link
Member

@dnhatn dnhatn left a 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'
Copy link
Member

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?

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

++

@nik9000 nik9000 added the auto-merge-without-approval Automatically merge pull request when CI checks pass (NB doesn't wait for reviews!) label Oct 29, 2023
@elasticsearchmachine elasticsearchmachine merged commit fb03858 into elastic:main Oct 29, 2023
@nik9000 nik9000 deleted the esql_constant_keyword_null branch October 29, 2023 14:55
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
:Analytics/Compute Engine Analytics in ES|QL auto-merge-without-approval Automatically merge pull request when CI checks pass (NB doesn't wait for reviews!) >non-issue Team:Analytics Meta label for analytical engine team (ESQL/Aggs/Geo) v8.12.0
Projects
None yet
Development

Successfully merging this pull request may close these issues.

ESQL: Benchmarking query failing after new way of loading values PR in multi-index queries
3 participants