Added missing integration tests for the pow and power functions#247
Added missing integration tests for the pow and power functions#247matthewryanwells merged 8 commits intointeg-pow-itfrom
Conversation
Signed-off-by: Matthew Wells <matthew.wells@improving.com>
|
Can you also add a test where the result would be |
Codecov Report
@@ Coverage Diff @@
## integ-pow-it #247 +/- ##
===============================================
Coverage ? 98.39%
Complexity ? 3717
===============================================
Files ? 343
Lines ? 9159
Branches ? 584
===============================================
Hits ? 9012
Misses ? 142
Partials ? 5
Flags with carried forward coverage won't be shown. Click here to find out more. 📣 We’re building smart automated test selection to slash your CI/CD build times. Learn more |
Is there a mathematical equation that would cause pow/power to output a null or do you want me to force a null value by giving it invalid data? |
Some examples here https://stackoverflow.com/questions/20250453/why-math-powa-b-is-nan-when-a-is-a-negative-number-and-b-is-a-non-integer |
From what I have seen with the other tests IT don't actually ever test for null or invalid values, those are testing in the unit tests. Also if you try to input data that would cause an invalid outcome the tests returns an |
…pdated IT to test for invalid output Signed-off-by: Matthew Wells <matthew.wells@improving.com>
Signed-off-by: Matthew Wells <matthew.wells@improving.com>
Signed-off-by: Matthew Wells <matthew.wells@improving.com>
Signed-off-by: Matthew Wells <matthew.wells@improving.com>
GumpacG
left a comment
There was a problem hiding this comment.
LGTM! Although, some GH actions are failing.
Signed-off-by: Matthew Wells <matthew.wells@improving.com>
...src/test/java/org/opensearch/sql/expression/operator/arthmetic/MathematicalFunctionTest.java
Show resolved
Hide resolved
Signed-off-by: Matthew Wells <matthew.wells@improving.com>
Signed-off-by: Matthew Wells <matthew.wells@improving.com>
opensearch-project#1457) * Changed pow and power to return null when an invalid response would be returned and added missing integration tests for the pow and power function. Signed-off-by: Matthew Wells <matthew.wells@improving.com>
opensearch-project#1457) (opensearch-project#1459) * Changed pow and power to return null when an invalid response would be returned and added missing integration tests for the pow and power function. Signed-off-by: Matthew Wells <matthew.wells@improving.com> (cherry picked from commit a35f963) Co-authored-by: Matthew Wells <matthew.wells@improving.com>
….util references (#247) Signed-off-by: Naveen Tatikonda <navtat@amazon.com>
Description
Add integration tests for the pow and power functions which were previously missing it
Issues Resolved
opensearch-project#1190
Check List
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.