Skip to content

Updated EXPM1() and Tests to New Engine - #215

Merged
matthewryanwells merged 20 commits into
integ-expm1from
dev-expm1
Feb 13, 2023
Merged

matthewryanwells merged 20 commits into
integ-expm1from
dev-expm1

Conversation

@matthewryanwells

Copy link
Copy Markdown

Signed-off-by: Matthew Wells [email protected]

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.

@GumpacG

GumpacG commented Feb 2, 2023

Copy link
Copy Markdown

Actions are failing due to checkstyle.

@Yury-Fridlyand Yury-Fridlyand left a comment •

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

What about PPL?

@GumpacG

GumpacG commented Feb 2, 2023

Copy link
Copy Markdown

What about PPL?

opensearch-project#1097 for reference

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

codecov Bot commented Feb 2, 2023 •

Copy link
Copy Markdown

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

@matthewryanwells

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

What about PPL?

opensearch-project#1097 for reference

I have added in PPL, including testing and documentation

@Yury-Fridlyand Yury-Fridlyand left a comment

Copy link
Copy Markdown

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 <[email protected]>
@matthewryanwells

Copy link
Copy Markdown
Author

You can rebase on upstream/main to make CI pass

I have now rebased the changes

Comment thread docs/user/dql/functions.rst Resolved
Comment thread docs/user/ppl/functions/math.rst Resolved
@GumpacG

GumpacG commented Feb 7, 2023

Copy link
Copy Markdown

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.

| 7.38905609893065 |
+------------------+


Copy link
Copy Markdown

Choose a reason for hiding this comment

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

Accidental deletion?

@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 <[email protected]>
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 <[email protected]>
(cherry picked from commit e990201)

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.

6 participants