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

Esql date casting tests #120420

Open
wants to merge 3 commits into
base: main
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -1452,6 +1452,7 @@ cnt:long
;

implicit casting strings to dates for IN operator
required_capability: string_literal_auto_casting
FROM employees
| WHERE birth_date IN ("1953-04-20", "1958-10-31")
| KEEP emp_no, first_name;
Expand All @@ -1462,7 +1463,7 @@ emp_no:integer | first_name:keyword
10025 | Prasadram
;

IN operator with null in list, finds match
IN operator with null in list, finds match#[skip:-8.13.99, reason: default date formatter is changed in 8.14]

FROM employees
| EVAL x = NULL
Expand All @@ -1473,7 +1474,7 @@ birth_date:datetime | first_name:keyword
1958-02-19T00:00:00.000Z | Saniya
;

IN operator with null in list, doesn't find match
IN operator with null in list, doesn't find match#[skip:-8.13.99, reason: default date formatter is changed in 8.14]

FROM employees
| EVAL x = NULL
Expand All @@ -1483,7 +1484,7 @@ FROM employees
birth_date:datetime | first_name:keyword
;

IN operator with null in list, doesn't find match, EVAL to check value
IN operator with null in list, doesn't find match, EVAL to check value#[skip:-8.13.99, reason: default date formatter is changed in 8.14]

FROM employees
| EVAL x = NULL
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -748,6 +748,7 @@ ct:long | mo:date_nanos
Bucket Date nanos by 10 minutes
required_capability: date_trunc_date_nanos
required_capability: date_nanos_bucket
required_capability: string_literal_auto_casting

FROM date_nanos
| WHERE millis > "2020-01-01"
Expand Down