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: Handle ADD near the end of time #107968

Merged

Conversation

nik9000
Copy link
Member

@nik9000 nik9000 commented Apr 26, 2024

This updates our tests to handle the case where you are adding a TemporalAmount to a date that is new Long.MAX_VALUE. It also adds a test case that generates dates new that time just so we catch errors out that way faster.

Closes #107817

This updates our tests to handle the case where you are adding a
`TemporalAmount` to a date that is new `Long.MAX_VALUE`. It also adds a
test case that generates dates new that time just so we catch errors out
that way faster.

Closes elastic#107817
@nik9000 nik9000 added >test Issues or PRs that are addressing/adding tests :Analytics/ES|QL AKA ESQL v8.15.0 labels Apr 26, 2024
Copy link

Documentation preview:

@elasticsearchmachine elasticsearchmachine added the Team:Analytics Meta label for analytical engine team (ESQL/Aggs/Geo) label Apr 26, 2024
@elasticsearchmachine
Copy link
Collaborator

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

@@ -3,7 +3,7 @@
*Examples*

`BUCKET` can work in two modes: one in which the size of the bucket is computed
based on a buckets count recommendation (four parameters) and a range, and
based on a buckets count recommendation (four parameters) and a range and
Copy link
Member Author

Choose a reason for hiding this comment

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

This just needed to be regenerated. It's not part of my change.

Copy link
Contributor

Choose a reason for hiding this comment

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

Oops, looks like some changes were made in this asciidoc directly, rather than in org/elasticsearch/xpack/esql/expression/function/grouping/Bucket.java.

@bpintea, could you please double check this? This shouldn't block this PR, but maybe we need a tiny follow-up PR to fix this.

Copy link
Contributor

Choose a reason for hiding this comment

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

Thanks Alex, raised #108005.

@nik9000 nik9000 changed the title ESQL: Handle add near the end of time ESQL: Handle ADD near the end of time Apr 27, 2024
Copy link
Contributor

@alex-spies alex-spies left a comment

Choose a reason for hiding this comment

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

LGTM, Thanks @nik9000 !

@@ -3,7 +3,7 @@
*Examples*

`BUCKET` can work in two modes: one in which the size of the bucket is computed
based on a buckets count recommendation (four parameters) and a range, and
based on a buckets count recommendation (four parameters) and a range and
Copy link
Contributor

Choose a reason for hiding this comment

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

Oops, looks like some changes were made in this asciidoc directly, rather than in org/elasticsearch/xpack/esql/expression/function/grouping/Bucket.java.

@bpintea, could you please double check this? This shouldn't block this PR, but maybe we need a tiny follow-up PR to fix this.

@nik9000
Copy link
Member Author

nik9000 commented Apr 30, 2024

I'll drop the asciidoc from this one.

@nik9000 nik9000 added the auto-merge Automatically merge pull request when CI checks pass (NB doesn't wait for reviews!) label Apr 30, 2024
@bpintea
Copy link
Contributor

bpintea commented Apr 30, 2024

I'll drop the asciidoc from this one.

#108005 is merged, so the asciidoc is no longer regenerated by tests now.

@elasticsearchmachine elasticsearchmachine merged commit a00345f into elastic:main Apr 30, 2024
15 checks passed
@nik9000 nik9000 deleted the esql_handle_add_near_end_of_time branch April 30, 2024 17:05
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 Automatically merge pull request when CI checks pass (NB doesn't wait for reviews!) Team:Analytics Meta label for analytical engine team (ESQL/Aggs/Geo) >test Issues or PRs that are addressing/adding tests v8.15.0
Projects
None yet
4 participants