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

Relax ValueSources check in OrdinalsGroupingOperator #100566

Merged
merged 3 commits into from
Oct 11, 2023

Conversation

dnhatn
Copy link
Member

@dnhatn dnhatn commented Oct 10, 2023

ValuesSource can be Null instead of Bytes when a shard has no data for a specific field. This PR relaxes the check for ValueSources in the OrdinalsGroupingOperator.

We will need to add more tests for OrdinalsGroupingOperator.

Closes #100438

@elasticsearchmachine
Copy link
Collaborator

Pinging @elastic/es-ql (Team:QL)

@elasticsearchmachine elasticsearchmachine added the Team:QL (Deprecated) Meta label for query languages team label Oct 10, 2023
@elasticsearchmachine
Copy link
Collaborator

Pinging @elastic/elasticsearch-esql (:Query Languages/ES|QL)

Copy link
Contributor

@craigtaverner craigtaverner left a comment

Choose a reason for hiding this comment

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

LGTM, obviously tests would be good too, but I presume that is not trivial. I will at least test this later on the benchmarks.

@dnhatn
Copy link
Member Author

dnhatn commented Oct 10, 2023

obviously tests would be good too, but I presume that is not trivial. I will at least test this later on the benchmarks.

@craigtaverner I was in a rush to get this in to unblock your benchmark work. Sure, I will add a test for this before merging this PR.

@dnhatn
Copy link
Member Author

dnhatn commented Oct 11, 2023

I've added a test in afdcf18.

@dnhatn dnhatn added the auto-merge-without-approval Automatically merge pull request when CI checks pass (NB doesn't wait for reviews!) label Oct 11, 2023
@elasticsearchmachine elasticsearchmachine merged commit 5cc9009 into elastic:main Oct 11, 2023
@dnhatn dnhatn deleted the relax-source-check branch October 11, 2023 06:09
@elasticsearchmachine
Copy link
Collaborator

💚 Backport successful

Status Branch Result
8.11

dnhatn added a commit to dnhatn/elasticsearch that referenced this pull request Oct 11, 2023
ValuesSource can be Null instead of Bytes when a shard has no data for a
specific field. This PR relaxes the check for ValueSources in the
OrdinalsGroupingOperator.

We will need to add more tests for OrdinalsGroupingOperator.

Closes elastic#100438
elasticsearchmachine pushed a commit that referenced this pull request Oct 11, 2023
ValuesSource can be Null instead of Bytes when a shard has no data for a
specific field. This PR relaxes the check for ValueSources in the
OrdinalsGroupingOperator.

We will need to add more tests for OrdinalsGroupingOperator.

Closes #100438
@astefan astefan added the >bug label Oct 11, 2023
@costin costin mentioned this pull request Oct 11, 2023
32 tasks
@dnhatn dnhatn removed the >bug label Oct 12, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
:Analytics/ES|QL AKA ESQL auto-merge-without-approval Automatically merge pull request when CI checks pass (NB doesn't wait for reviews!) >non-issue Team:QL (Deprecated) Meta label for query languages team v8.11.1 v8.12.0
Projects
None yet
Development

Successfully merging this pull request may close these issues.

ESQL: 'ValuesSources are mismatched' stats group by field that is missing in some indices
5 participants