Skip to content

Fix compile issue, add geo module as dependency - #808

Merged
penghuo merged 3 commits into
opensearch-project:mainfrom
penghuo:2.3-geo
Sep 8, 2022
Merged

penghuo merged 3 commits into
opensearch-project:mainfrom
penghuo:2.3-geo

Conversation

@penghuo

@penghuo penghuo commented Sep 8, 2022 •

Copy link
Copy Markdown
Collaborator

Signed-off-by: penghuo [email protected]

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.

@penghuo
penghuo requested a review from a team as a code owner September 8, 2022 16:28
@codecov-commenter

codecov-commenter commented Sep 8, 2022 •

Copy link
Copy Markdown

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.

Comment thread legacy/build.gradle
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/.

@saratvemulapalli saratvemulapalli Sep 8, 2022 •

Copy link
Copy Markdown
Member

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.

@penghuo penghuo Sep 8, 2022 •

Copy link
Copy Markdown
Collaborator Author

Choose a reason for hiding this comment

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

Signed-off-by: penghuo <[email protected]>

@saratvemulapalli saratvemulapalli left a comment

Copy link
Copy Markdown
Member

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

penghuo commented Sep 8, 2022

Copy link
Copy Markdown
Collaborator Author

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