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

Fix bug of divide and modulus not handling a 0 denominator with byte data type #272

Merged
merged 7 commits into from
Jun 6, 2023

Conversation

matthewryanwells
Copy link

@matthewryanwells matthewryanwells commented Jun 1, 2023

Description

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

Issues Resolved

opensearch-project#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.

matthewryanwells and others added 6 commits May 29, 2023 15:34
* Created anonymizer listener for anonymizing SQL queries through the new engine
Signed-off-by: Matthew Wells <[email protected]>
Signed-off-by: Andrew Carbonetto <[email protected]>
Signed-off-by: Matthew Wells <[email protected]>
@codecov
Copy link

codecov bot commented Jun 1, 2023

Codecov Report

Merging #272 (9bab64d) into integ-byte-bug (691012d) will increase coverage by 0.00%.
The diff coverage is 100.00%.

❗ Current head 9bab64d differs from pull request most recent head 1d5ea1e. Consider uploading reports for the commit 1d5ea1e to get more accurate results

@@                Coverage Diff                @@
##             integ-byte-bug     #272   +/-   ##
=================================================
  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%> (ø)

📣 We’re building smart automated test selection to slash your CI/CD build times. Learn more

@matthewryanwells matthewryanwells changed the title Fix bug of divide and modulus not handling a 0 numerator with byte data type Fix bug of divide and modulus not handling a 0 denominator with byte data type Jun 1, 2023
@matthewryanwells matthewryanwells merged commit 4e57343 into integ-byte-bug Jun 6, 2023
@matthewryanwells matthewryanwells deleted the dev-byte-bug branch June 6, 2023 21:02
MitchellGale pushed a commit that referenced this pull request Jun 15, 2023
… (opensearch-project#1716)

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

Signed-off-by: Matthew Wells <[email protected]>
MitchellGale pushed a commit that referenced this pull request Jun 21, 2023
… (opensearch-project#1716) (opensearch-project#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
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

5 participants