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

SQL: Verify binary fields found in non-project to have the doc_values #69128

Merged
merged 3 commits into from
Feb 19, 2021

Conversation

bpintea
Copy link
Contributor

@bpintea bpintea commented Feb 17, 2021

This adds a verifier rule to check that any fields used in filtering,
aggregations or ordering has the doc_values. Otherwise the query will
either fail in ES with a less obvious and more verbose reason OR plainly
give wrong results if filtering with IS [NOT] NULL.

Closes #68229.

This adds a verifier rule to check that any fields used in filtering,
aggregations or ordering has the doc_values. Otherwise the query will
fail in ES with a less obvious reason.
- layout fixes.
@bpintea
Copy link
Contributor Author

bpintea commented Feb 17, 2021

@elasticmachine update branch

@bpintea bpintea marked this pull request as ready for review February 17, 2021 16:31
@bpintea bpintea added the :Analytics/SQL SQL querying label Feb 17, 2021
@elasticmachine elasticmachine added the Team:QL (Deprecated) Meta label for query languages team label Feb 17, 2021
@elasticmachine
Copy link
Collaborator

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

Copy link
Contributor

@astefan astefan left a comment

Choose a reason for hiding this comment

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

LGTM

Copy link
Contributor

@matriv matriv left a comment

Choose a reason for hiding this comment

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

LGTM

@bpintea bpintea merged commit 1b9ec88 into elastic:master Feb 19, 2021
@bpintea bpintea deleted the fix/verify_binary branch February 19, 2021 07:53
bpintea added a commit to bpintea/elasticsearch that referenced this pull request Feb 19, 2021
…elastic#69128)

This adds a verifier rule to check that any fields used in filtering,
aggregations or ordering has the doc_values. Otherwise the query will
either fail in ES with a less obvious and more verbose reason OR plainly
give wrong results if filtering with `IS [NOT] NULL`.

(cherry picked from commit 1b9ec88)
bpintea added a commit to bpintea/elasticsearch that referenced this pull request Feb 19, 2021
…elastic#69128)

This adds a verifier rule to check that any fields used in filtering,
aggregations or ordering has the doc_values. Otherwise the query will
either fail in ES with a less obvious and more verbose reason OR plainly
give wrong results if filtering with `IS [NOT] NULL`.

(cherry picked from commit 1b9ec88)
@bpintea bpintea added v7.12.1 and removed v7.11.2 labels Feb 19, 2021
bpintea added a commit that referenced this pull request Feb 19, 2021
…#69128) (#69257)

This adds a verifier rule to check that any fields used in filtering,
aggregations or ordering has the doc_values. Otherwise the query will
either fail in ES with a less obvious and more verbose reason OR plainly
give wrong results if filtering with `IS [NOT] NULL`.

(cherry picked from commit 1b9ec88)
bpintea added a commit that referenced this pull request Feb 19, 2021
…#69128) (#69256)

This adds a verifier rule to check that any fields used in filtering,
aggregations or ordering has the doc_values. Otherwise the query will
either fail in ES with a less obvious and more verbose reason OR plainly
give wrong results if filtering with `IS [NOT] NULL`.

(cherry picked from commit 1b9ec88)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

SQL: binary type incorrectly filtered by IS (NOT) NULL
5 participants