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

Fixed bug of byte/short not handling 0 denominator in divide/modulus equations #1716

Merged
merged 1 commit into from
Jun 13, 2023

Conversation

matthewryanwells
Copy link
Contributor

Description

Previously there was no handling of a 0 denominator for byte and short in the divide and modulus arithmetic operators, I have fixed that and updated it's testing.

Issues Resolved

#1582

Check List

  • New functionality includes testing.
    • All tests pass, including unit test, integration test and doctest
  • New functionality has been documented.
    • New functionality has javadoc added
    • New functionality has user manual doc added
  • Commits are signed per the DCO using --signoff

By submitting this pull request, I confirm that my contribution is made under the terms of the Apache 2.0 license.
For more information on following Developer Certificate of Origin and signing off your commits, please check here.

…data type (#272)

* Fixed bug of byte/short values not handling divide/modulus arithmetic equations

Signed-off-by: Matthew Wells <[email protected]>
@codecov
Copy link

codecov bot commented Jun 6, 2023

Codecov Report

Merging #1716 (4e57343) into main (691012d) will increase coverage by 0.00%.
The diff coverage is 100.00%.

@@            Coverage Diff            @@
##               main    #1716   +/-   ##
=========================================
  Coverage     97.27%   97.28%           
- Complexity     4330     4332    +2     
=========================================
  Files           388      388           
  Lines         10807    10809    +2     
  Branches        761      761           
=========================================
+ Hits          10513    10515    +2     
  Misses          287      287           
  Partials          7        7           
Flag Coverage Δ
sql-engine 97.28% <100.00%> (+<0.01%) ⬆️

Flags with carried forward coverage won't be shown. Click here to find out more.

Impacted Files Coverage Δ
...ression/operator/arthmetic/ArithmeticFunction.java 100.00% <100.00%> (ø)

@MaxKsyunz MaxKsyunz merged commit 2c80631 into opensearch-project:main Jun 13, 2023
opensearch-trigger-bot bot pushed a commit that referenced this pull request Jun 13, 2023
… (#1716)

* Fixed bug of byte/short values not handling divide/modulus arithmetic equations

Signed-off-by: Matthew Wells <[email protected]>
(cherry picked from commit 2c80631)
Yury-Fridlyand pushed a commit that referenced this pull request Jun 15, 2023
… (#1716) (#1734)

* Fixed bug of byte/short values not handling divide/modulus arithmetic equations

Signed-off-by: Matthew Wells <[email protected]>
(cherry picked from commit 2c80631)

Co-authored-by: Matthew Wells <[email protected]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants