Skip to content

SQL: LIKE/RLIKE don't use underlying exact field #39442

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

Closed
matriv opened this issue Feb 27, 2019 · 1 comment · Fixed by #39443
Closed

SQL: LIKE/RLIKE don't use underlying exact field #39442

matriv opened this issue Feb 27, 2019 · 1 comment · Fixed by #39443
Assignees
Labels

Comments

@matriv
Copy link
Contributor

matriv commented Feb 27, 2019

For queries like: SELECT * FROM t WHERE text_field LIKE '%a%'
the text_field is used instead of the underlying exact field (e.g.: text_field.keyword)

@matriv matriv added >bug :Analytics/SQL SQL querying labels Feb 27, 2019
@elasticmachine
Copy link
Collaborator

Pinging @elastic/es-search

@matriv matriv self-assigned this Feb 27, 2019
matriv added a commit to matriv/elasticsearch that referenced this issue Feb 27, 2019
Previously, if a text field had an underlying keyword field
the latter was not used instead of the text leading to wrong
results returned by queries filtering with LIKE/RLIKE.

Fixes: elastic#39442
@matriv matriv changed the title SQL: LIKE/RLIKE don't peak up underlying exact field SQL: LIKE/RLIKE don't use underlying exact field Feb 27, 2019
matriv added a commit that referenced this issue Feb 27, 2019
Previously, if a text field had an underlying keyword field
the latter was not used instead of the text leading to wrong
results returned by queries filtering with LIKE/RLIKE.

Fixes: #39442
matriv added a commit that referenced this issue Feb 27, 2019
Previously, if a text field had an underlying keyword field
the latter was not used instead of the text leading to wrong
results returned by queries filtering with LIKE/RLIKE.

Fixes: #39442
matriv added a commit that referenced this issue Feb 27, 2019
Previously, if a text field had an underlying keyword field
the latter was not used instead of the text leading to wrong
results returned by queries filtering with LIKE/RLIKE.

Fixes: #39442
matriv added a commit that referenced this issue Feb 27, 2019
Previously, if a text field had an underlying keyword field
the latter was not used instead of the text leading to wrong
results returned by queries filtering with LIKE/RLIKE.

Fixes: #39442
matriv added a commit that referenced this issue Feb 27, 2019
Previously, if a text field had an underlying keyword field
the latter was not used instead of the text leading to wrong
results returned by queries filtering with LIKE/RLIKE.

Fixes: #39442
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants