Skip to content

Conversation

@bpintea
Copy link
Contributor

@bpintea bpintea commented Feb 3, 2022

This adds range checks on the multiplication operation of intervals with integers.

Fixes #83336

This adds checks on the multiplication operation on intervals (with
integer).
@elasticsearchmachine
Copy link
Collaborator

Hi @bpintea, I've created a changelog YAML for you.

Remove redundant import.
@bpintea bpintea marked this pull request as ready for review February 3, 2022 20:16
@elasticmachine elasticmachine added the Team:QL (Deprecated) Meta label for query languages team label Feb 3, 2022
@elasticmachine
Copy link
Collaborator

Pinging @elastic/es-ql (Team:QL)

Copy link
Member

@costin costin left a comment

Choose a reason for hiding this comment

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

LGTM

Copy link
Contributor

@Luegg Luegg left a comment

Choose a reason for hiding this comment

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

Lgtm, but I would consider adding some examples demonstrating interval multiplications to datetime-interval.csv-spec.

@bpintea
Copy link
Contributor Author

bpintea commented Feb 4, 2022

I would consider adding some examples demonstrating interval multiplications to datetime-interval.csv-spec

@Luegg, additional to the ones starting on (currently) line 171?

@Luegg
Copy link
Contributor

Luegg commented Feb 4, 2022

I would consider adding some examples demonstrating interval multiplications to datetime-interval.csv-spec

@Luegg, additional to the ones starting on (currently) line 171?

Uh, I missed these, sorry. Never mind then, looks even better to me now :)

Copy link
Contributor

@luigidellaquila luigidellaquila left a comment

Choose a reason for hiding this comment

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

LGTM

@bpintea bpintea merged commit 7c6a2a6 into elastic:master Feb 7, 2022
@bpintea bpintea deleted the fix/interval_mul_overflow branch February 7, 2022 09:05
weizijun added a commit to weizijun/elasticsearch that referenced this pull request Feb 7, 2022
* upstream/master:
  [DOCS] Switch xrefs to external links (elastic#83590)
  [DOCS] 'features' flag added in elastic#83083 (elastic#83452)
  Rename ChangePolicyforIndexIT to ChangePolicyForIndexIT (elastic#83569)
  Fixing random_sampler tests (elastic#83549)
  Upgrade Checkstyle to 9.3 (elastic#83314)
  Make improvements to the release notes generator (elastic#83525)
  Cleanup DataTierAllocationDecider (elastic#83572)
  Upgrade jANSI dependency to 2.4.0 (elastic#83566)
  Speed up Name Collision Check in Metadata.Builder (elastic#83340)
  SQL: Add range checks to interval multiplication operation (elastic#83478)
  Remove DiscoveryNodes#getAllNodes (elastic#83538)
  Make RoutingNodes behave like a collection (elastic#83540)
  Remove Unused CS Listener from SecurityServerTransportInterceptor (elastic#83556)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

:Analytics/SQL SQL querying >bug Team:QL (Deprecated) Meta label for query languages team v8.2.0

Projects

None yet

Development

Successfully merging this pull request may close these issues.

SQL: bounds of interval multiplication are not checked

6 participants