Skip to content

[8.x] Esql implicit casting for date nanos (#118697)#118888

Merged
elasticsearchmachine merged 1 commit intoelastic:8.xfrom
not-napoleon:backport/8.x/pr-118697
Dec 17, 2024
Merged

[8.x] Esql implicit casting for date nanos (#118697)#118888
elasticsearchmachine merged 1 commit intoelastic:8.xfrom
not-napoleon:backport/8.x/pr-118697

Conversation

@not-napoleon
Copy link
Member

Backports the following commits to 8.x:

resolves elastic#118476

This adds an implicit cast from string to date nanos, much the same as we do for millisecond dates. In the course of working on this, I found and fixed a couple of tests that were creating pre-epoch date nanos, which are not supported in elasticsearch. I also refactored the conversion code to use the standard DateUtils functions where appropriate, which caught some of the above errors in test data.
@not-napoleon not-napoleon added :Analytics/ES|QL AKA ESQL >enhancement auto-merge-without-approval Automatically merge pull request when CI checks pass (NB doesn't wait for reviews!) backport Team:Analytics Meta label for analytical engine team (ESQL/Aggs/Geo) labels Dec 17, 2024
@elasticsearchmachine elasticsearchmachine merged commit a111ee7 into elastic:8.x Dec 17, 2024
@not-napoleon not-napoleon deleted the backport/8.x/pr-118697 branch December 17, 2024 21:06
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-merge-without-approval Automatically merge pull request when CI checks pass (NB doesn't wait for reviews!) backport >enhancement Team:Analytics Meta label for analytical engine team (ESQL/Aggs/Geo) v8.18.0

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants