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 compile issue, add geo module as dependency #808

Merged
merged 3 commits into from
Sep 8, 2022

Conversation

penghuo
Copy link
Collaborator

@penghuo penghuo commented Sep 8, 2022

Signed-off-by: penghuo penghuo@gmail.com

Description

Fix build issue with 2.3 release. OpenSearch core move geo to separate module. opensearch-project/OpenSearch#4180. Plugin need add geo module as dependency.

Issues Resolved

[List any issues this PR will resolve]

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: penghuo <penghuo@gmail.com>
@penghuo penghuo requested a review from a team as a code owner September 8, 2022 16:28
@codecov-commenter
Copy link

codecov-commenter commented Sep 8, 2022

Codecov Report

Merging #808 (aef800d) into main (ddb3deb) will increase coverage by 32.05%.
The diff coverage is n/a.

@@              Coverage Diff              @@
##               main     #808       +/-   ##
=============================================
+ Coverage     62.76%   94.82%   +32.05%     
- Complexity        0     2912     +2912     
=============================================
  Files            10      291      +281     
  Lines           658     7780     +7122     
  Branches        118      566      +448     
=============================================
+ Hits            413     7377     +6964     
- Misses          192      349      +157     
- Partials         53       54        +1     
Flag Coverage Δ
query-workbench 62.76% <ø> (ø)
sql-engine 97.78% <ø> (?)

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

Impacted Files Coverage Δ
...a/org/opensearch/sql/data/model/ExprDateValue.java 100.00% <0.00%> (ø)
...g/opensearch/sql/expression/text/TextFunction.java 100.00% <0.00%> (ø)
...arch/sql/planner/physical/AggregationOperator.java 100.00% <0.00%> (ø)
...ch/sql/expression/window/ranking/RankFunction.java 100.00% <0.00%> (ø)
...nsearch/sql/planner/physical/RareTopNOperator.java 100.00% <0.00%> (ø)
...ssion/operator/arthmetic/MathematicalFunction.java 100.00% <0.00%> (ø)
...earch/sql/planner/physical/collector/Rounding.java 100.00% <0.00%> (ø)
...opensearch/sql/planner/logical/LogicalPlanDSL.java 100.00% <0.00%> (ø)
.../opensearch/sql/planner/logical/LogicalFilter.java 100.00% <0.00%> (ø)
...l/opensearch/data/value/OpenSearchExprIpValue.java 100.00% <0.00%> (ø)
... and 271 more

Help us with your feedback. Take ten seconds to tell us how you rate us. Have a feature suggestion? Share it here.

@@ -92,6 +92,8 @@ dependencies {
implementation group: 'org.json', name: 'json', version:'20180813'
implementation group: 'org.apache.commons', name: 'commons-lang3', version: '3.10'
implementation group: 'org.opensearch', name: 'opensearch', version: "${opensearch_version}"
// add geo module as dependency. https://github.com/opensearch-project/OpenSearch/pull/4180/.
Copy link
Member

@saratvemulapalli saratvemulapalli Sep 8, 2022

Choose a reason for hiding this comment

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

implementation will result into a jar hell. Because OpenSearch will include this jar.
I wonder why integration tests are not failing.

Copy link
Collaborator Author

@penghuo penghuo Sep 8, 2022

Choose a reason for hiding this comment

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

Signed-off-by: penghuo <penghuo@gmail.com>
Copy link
Member

@saratvemulapalli saratvemulapalli left a comment

Choose a reason for hiding this comment

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

Had a chat with @penghuo.
Looks like the plugin fails to find the class during runtime.
We'll do a follow up as including another geo.jar doesnt hurt and will take care of it for next release.

This reverts commit ca18fd1.

Signed-off-by: penghuo <penghuo@gmail.com>
@penghuo
Copy link
Collaborator Author

penghuo commented Sep 8, 2022

Had a chat with @penghuo. Looks like the plugin fails to find the class during runtime. We'll do a follow up as including another geo.jar doesnt hurt and will take care of it for next release.

Create Issue. opensearch-project/OpenSearch#4461

@penghuo penghuo merged commit 53cde65 into opensearch-project:main Sep 8, 2022
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.

4 participants