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

Add JTS core as a dependency #20

Merged
merged 1 commit into from
Mar 28, 2024
Merged

Conversation

tdcmeehan
Copy link
Contributor

Previously, this was added as a transitive dependency, which made it susceptible to breaking whenver Presto would upgrade its JTS library. It's now included and shaded to make it resilient to Presto upgrades.

@tdcmeehan
Copy link
Contributor Author

CC: @isaacbrodsky

@tdcmeehan
Copy link
Contributor Author

CC: @nrabinowitz

@nrabinowitz
Copy link
Contributor

This looks good to me but I'll let @isaacbrodsky sign off

@isaacbrodsky
Copy link
Contributor

@nrabinowitz could you approve the workflow on this PR so we get the CI results? Thanks

@coveralls
Copy link

coveralls commented Mar 27, 2024

Pull Request Test Coverage Report for Build #15

Warning: This coverage report may be inaccurate.

This pull request's base commit is no longer the HEAD commit of its target branch. This means it includes changes from outside the original pull request, including, potentially, unrelated coverage changes.

Details

  • 0 of 0 changed or added relevant lines in 0 files are covered.
  • No unchanged relevant lines lost coverage.
  • Overall coverage remained the same at 91.561%

Totals Coverage Status
Change from base Build #11: 0.0%
Covered Lines: 217
Relevant Lines: 237

💛 - Coveralls

Copy link
Contributor

@isaacbrodsky isaacbrodsky left a comment

Choose a reason for hiding this comment

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

Thank you for contributing this fix!

I'd recommend also updating the pom.xml to Presto 0.286, which is the version I tested with.

I was able to successfully start the server with the h3-presto plugin using this patch and run a test query:

(Note this used a customized Dockerfile with the h3-presto plugin added to it)

docker run -p 8080:8080 --rm -it presto
presto> select h3_latlng_to_cell(0,0,0);
       _col0
--------------------
 578536630256664575
(1 row)

Query 20240327_220914_00002_2x9k7, FINISHED, 1 node
Splits: 17 total, 17 done (100.00%)
[Latency: client-side: 305ms, server-side: 266ms] [0 rows, 0B] [0 rows/s, 0B/s]

Previously, this was added as a transitive dependency, which made
it susceptible to breaking whenever Presto would upgrade its JTS
library.  It's now included and shaded to make it resilient to Presto
upgrades.
@tdcmeehan
Copy link
Contributor Author

Thank you @isaacbrodsky, I have updated the Presto dependency to 0.286.

nrabinowitz pushed a commit that referenced this pull request Mar 28, 2024
Here's the Dockerfile and instructions I used to test #20.
@nrabinowitz nrabinowitz merged commit cfb831d into foursquare:main Mar 28, 2024
4 checks passed
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.

None yet

4 participants