Skip to content

[ESQL] Support datetime data type in Least and Greatest functions (#113961)#114138

Merged
elasticsearchmachine merged 1 commit intoelastic:8.15from
not-napoleon:backport-113961-to-8.15
Oct 4, 2024
Merged

[ESQL] Support datetime data type in Least and Greatest functions (#113961)#114138
elasticsearchmachine merged 1 commit intoelastic:8.15from
not-napoleon:backport-113961-to-8.15

Conversation

@not-napoleon
Copy link
Copy Markdown
Member

While working on Date Nanos, I noticed that Least and Greatest didn't have support for datetime. This PR corrects that and adds tests for it.

It seems to me that resolveType() is doing the wrong thing for these functions, as it accepts types that then do not have evaluator mappings, but refactoring that seems out of scope right now.

…astic#113961)

While working on Date Nanos, I noticed that Least and Greatest didn't have support for datetime. This PR corrects that and adds tests for it.

It seems to me that resolveType() is doing the wrong thing for these functions, as it accepts types that then do not have evaluator mappings, but refactoring that seems out of scope right now.

---------

Co-authored-by: Elastic Machine <elasticmachine@users.noreply.github.com>
@not-napoleon not-napoleon added >bug backport auto-merge-without-approval Automatically merge pull request when CI checks pass (NB doesn't wait for reviews!) :Analytics/ES|QL AKA ESQL v8.15.3 labels Oct 4, 2024
@github-actions
Copy link
Copy Markdown
Contributor

github-actions bot commented Oct 4, 2024

Documentation preview:

@elasticsearchmachine elasticsearchmachine merged commit 7f05bee into elastic:8.15 Oct 4, 2024
@not-napoleon not-napoleon deleted the backport-113961-to-8.15 branch October 4, 2024 14:55
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 >bug v8.15.3

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants