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

Updated EXPM1() and Tests to New Engine #215

Merged
merged 20 commits into from
Feb 13, 2023
Merged

Conversation

matthewryanwells
Copy link

Signed-off-by: Matthew Wells matthew.wells@improving.com

Description

Updated EXPM1 function to run on the new engine, as well as added integration tests and unit tests

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.

Signed-off-by: Matthew Wells <matthew.wells@improving.com>
@GumpacG
Copy link

GumpacG commented Feb 2, 2023

Actions are failing due to checkstyle.

Copy link

@Yury-Fridlyand Yury-Fridlyand left a comment

Choose a reason for hiding this comment

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

What about PPL?

@GumpacG
Copy link

GumpacG commented Feb 2, 2023

What about PPL?

opensearch-project#1097 for reference

Signed-off-by: Matthew Wells <matthew.wells@improving.com>
@codecov
Copy link

codecov bot commented Feb 2, 2023

Codecov Report

Merging #215 (e5a7001) into integ-expm1 (af188a3) will decrease coverage by 0.01%.
The diff coverage is 100.00%.

@@                Coverage Diff                @@
##             integ-expm1     #215      +/-   ##
=================================================
- Coverage          98.36%   98.36%   -0.01%     
+ Complexity          3643     3636       -7     
=================================================
  Files                343      343              
  Lines               9017     8990      -27     
  Branches             585      585              
=================================================
- Hits                8870     8843      -27     
  Misses               142      142              
  Partials               5        5              
Flag Coverage Δ
sql-engine 98.36% <100.00%> (-0.01%) ⬇️

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

Impacted Files Coverage Δ
...c/main/java/org/opensearch/sql/expression/DSL.java 100.00% <100.00%> (ø)
...h/sql/expression/function/BuiltinFunctionName.java 100.00% <100.00%> (ø)
...ssion/operator/arthmetic/MathematicalFunction.java 100.00% <100.00%> (ø)

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

…mentation

Signed-off-by: Matthew Wells <matthew.wells@improving.com>
Signed-off-by: Matthew Wells <matthew.wells@improving.com>
@matthewryanwells
Copy link
Author

Actions are failing due to checkstyle.

the checkstyle was failing because of the lack of a newline which I have now fixed

@matthewryanwells
Copy link
Author

What about PPL?

opensearch-project#1097 for reference

I have added in PPL, including testing and documentation

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>
Copy link

@Yury-Fridlyand Yury-Fridlyand left a comment

Choose a reason for hiding this comment

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

You can rebase on upstream/main to make CI pass

Signed-off-by: Matthew Wells <matthew.wells@improving.com>
@matthewryanwells
Copy link
Author

You can rebase on upstream/main to make CI pass

I have now rebased the changes

@GumpacG
Copy link

GumpacG commented Feb 7, 2023

I would suggest to have the math function base extraction be a part of a different task so that more tests can be included for each of the types that the functions supports. This would prevent the task and PR from becoming large.

…d PPL

Signed-off-by: Matthew Wells <matthew.wells@improving.com>
Signed-off-by: Matthew Wells <matthew.wells@improving.com>
…ns to use the base

Signed-off-by: Matthew Wells <matthew.wells@improving.com>
Signed-off-by: Matthew Wells <matthew.wells@improving.com>
…t work

Signed-off-by: Matthew Wells <matthew.wells@improving.com>
@@ -321,7 +321,6 @@ Example::
| 7.38905609893065 |
+------------------+


Copy link

Choose a reason for hiding this comment

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

Accidental deletion?

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>
… pull request

Signed-off-by: Matthew Wells <matthew.wells@improving.com>
… done in one commit

Signed-off-by: Matthew Wells <matthew.wells@improving.com>
Signed-off-by: Matthew Wells <matthew.wells@improving.com>
@matthewryanwells matthewryanwells merged commit b82d5b8 into integ-expm1 Feb 13, 2023
@matthewryanwells matthewryanwells deleted the dev-expm1 branch February 13, 2023 17:25
GumpacG pushed a commit that referenced this pull request Feb 14, 2023
* Updated EXPM1() and tests to new engine

Signed-off-by: Matthew Wells <matthew.wells@improving.com>
GumpacG pushed a commit that referenced this pull request Feb 16, 2023
…) (opensearch-project#1348)

* Updated EXPM1() and tests to new engine

Signed-off-by: Matthew Wells <matthew.wells@improving.com>
(cherry picked from commit e990201)

Co-authored-by: Matthew Wells <matthew.wells@improving.com>
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.

6 participants