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

[BUG] IS NULL returns wrong results for text fields #657

Open
Yury-Fridlyand opened this issue Jun 24, 2022 · 0 comments
Open

[BUG] IS NULL returns wrong results for text fields #657

Yury-Fridlyand opened this issue Jun 24, 2022 · 0 comments
Labels
bug Something isn't working

Comments

@Yury-Fridlyand
Copy link
Collaborator

How can one reproduce the bug?
Steps to reproduce the behavior:

  1. Import test data set (run from root of SQL plugin repo)
curl -s -XPOST localhost:9200/beer.stackexchange/_bulk -H 'Content-Type: application/x-ndjson' --data-binary @integ-test/src/test/resources/beer.stackexchange.json
  1. Execute query like
select Id, Body from beer.stackexchange where Body is null LIMIT 5;

What is the expected behavior?
Result set should contain only lines where Body has null value

Actual result
Result set contains lines non-empty Body.

What is your host/environment?
Tested on 7cbb121cb3ad144a5e6d5b9acb9ae8e6da01688e (current main/HEAD).
OpenSearch 2.0

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants