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

[ES|QL] Equal predicate on datetime field may return inconsistent results #107900

Open
fang-xing-esql opened this issue Apr 25, 2024 · 1 comment
Labels
:Analytics/ES|QL AKA ESQL >bug Team:Analytics Meta label for analytical engine team (ESQL/Aggs/Geo)

Comments

@fang-xing-esql
Copy link
Contributor

fang-xing-esql commented Apr 25, 2024

Problem Description

Datetime field == literal returns correct results when run CsvTests in IntelliJ, however it returns empty resultset if run within grade single-node check.

Steps to Reproduce

Add the query below in date.csv-spec to reproduce it.

ImplicitCastingEqual
from employees
| where birth_date == "1957-05-23T00:00:00Z" --  to_datetime("1957-05-23T00:00:00Z") has the same issue
| keep emp_no, birth_date
| sort emp_no;

emp_no:integer | birth_date:datetime
10007          | 1957-05-23T00:00:00Z
;

Here is the gradle command to reproduce it.
REPRODUCE WITH: ./gradlew ':x-pack:plugin:esql:qa:server:single-node:javaRestTest' --tests "org.elasticsearch.xpack.esql.qa.single_node.EsqlSpecIT" -Dtests.method="test {date.ImplicitCastingEqual SYNC}" -Dtests.seed=C78D8F95DBC63930 -Dtests.locale=sr -Dtests.timezone=Australia/Melbourne -Druntime.java=21

@fang-xing-esql fang-xing-esql added >bug needs:triage Requires assignment of a team area label :Analytics/ES|QL AKA ESQL v8.15.0 labels Apr 25, 2024
@elasticsearchmachine elasticsearchmachine added the Team:Analytics Meta label for analytical engine team (ESQL/Aggs/Geo) label Apr 25, 2024
@elasticsearchmachine
Copy link
Collaborator

Pinging @elastic/es-analytical-engine (Team:Analytics)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
:Analytics/ES|QL AKA ESQL >bug Team:Analytics Meta label for analytical engine team (ESQL/Aggs/Geo)
Projects
None yet
Development

No branches or pull requests

3 participants