Skip to content

Conversation

ivancea
Copy link
Contributor

@ivancea ivancea commented Oct 11, 2024

Fixes #114613

Those tests were added with ::<type> casts, which don't work in older versions.

As they aren't testing anything around those casts, I'm replacing them with TO_<TYPE>() functions to let them work everywhere.

@ivancea ivancea added >test Issues or PRs that are addressing/adding tests Team:Analytics Meta label for analytical engine team (ESQL/Aggs/Geo) auto-backport Automatically create backport pull requests when merged :Analytics/ES|QL AKA ESQL v8.16.0 v9.0.0 labels Oct 11, 2024
@ivancea ivancea requested a review from bpintea October 11, 2024 15:58
@elasticsearchmachine
Copy link
Collaborator

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

required_capability: date_diff_year_calendarial

ROW from="2023-12-31T23:59:59.999Z"::DATETIME, to="2024-01-01T00:00:00"::DATETIME
ROW from=TO_DATETIME("2023-12-31T23:59:59.999Z"), to=TO_DATETIME("2024-01-01T00:00:00")
Copy link
Contributor

Choose a reason for hiding this comment

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

The tests that require date_diff_year_calendarial could be kept as are (since that capability was added way past 8.15, when :: was introduced). But maybe better like this for consistency.

Copy link
Contributor

@bpintea bpintea left a comment

Choose a reason for hiding this comment

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

Lgtm, 🙏!

@ivancea ivancea enabled auto-merge (squash) October 11, 2024 16:02
@ivancea ivancea merged commit f77611c into elastic:main Oct 11, 2024
15 of 16 checks passed
@elasticsearchmachine
Copy link
Collaborator

💚 Backport successful

Status Branch Result
8.x

ivancea added a commit to ivancea/elasticsearch that referenced this pull request Oct 11, 2024
Fixes elastic#114613

Those tests were added with `::<type>` casts, which don't work in older versions.

As they aren't testing anything around those casts, I'm replacing them with `TO_<TYPE>()` functions to let them work everywhere.
elasticsearchmachine pushed a commit that referenced this pull request Oct 11, 2024
…4643)

Fixes #114613

Those tests were added with `::<type>` casts, which don't work in older versions.

As they aren't testing anything around those casts, I'm replacing them with `TO_<TYPE>()` functions to let them work everywhere.
davidkyle pushed a commit to davidkyle/elasticsearch that referenced this pull request Oct 13, 2024
Fixes elastic#114613

Those tests were added with `::<type>` casts, which don't work in older versions.

As they aren't testing anything around those casts, I'm replacing them with `TO_<TYPE>()` functions to let them work everywhere.
@ivancea ivancea deleted the fix-bwc-date-csv-tests branch October 14, 2024 08:41
georgewallace pushed a commit to georgewallace/elasticsearch that referenced this pull request Oct 25, 2024
Fixes elastic#114613

Those tests were added with `::<type>` casts, which don't work in older versions.

As they aren't testing anything around those casts, I'm replacing them with `TO_<TYPE>()` functions to let them work everywhere.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

:Analytics/ES|QL AKA ESQL auto-backport Automatically create backport pull requests when merged Team:Analytics Meta label for analytical engine team (ESQL/Aggs/Geo) >test Issues or PRs that are addressing/adding tests v8.16.0 v9.0.0

Projects

None yet

Development

Successfully merging this pull request may close these issues.

[CI] MixedClusterEsqlSpecIT test {date.EvalDateDiffMonthAsWhole1Month ASYNC} failing

3 participants