From 3eb06b2b71aad9f59b83ef4d94f92c1e1b8d60f9 Mon Sep 17 00:00:00 2001 From: Wencong Liu Date: Tue, 23 Apr 2024 17:02:18 +0800 Subject: [PATCH] [core] Move the hilbert dependencies to paimon-common module --- paimon-common/pom.xml | 16 ++++++++++++++++ .../paimon/sort/hilbert/HilbertIndexer.java | 0 .../apache/paimon/utils/ConvertBinaryUtil.java | 0 paimon-common/src/main/resources/META-INF/NOTICE | 2 ++ paimon-core/pom.xml | 6 ------ 5 files changed, 18 insertions(+), 6 deletions(-) rename {paimon-core => paimon-common}/src/main/java/org/apache/paimon/sort/hilbert/HilbertIndexer.java (100%) rename {paimon-core => paimon-common}/src/main/java/org/apache/paimon/utils/ConvertBinaryUtil.java (100%) diff --git a/paimon-common/pom.xml b/paimon-common/pom.xml index 38f89999f2fe..ce28a2053f39 100644 --- a/paimon-common/pom.xml +++ b/paimon-common/pom.xml @@ -147,6 +147,12 @@ under the License. 0.16 + + com.github.davidmoten + hilbert-curve + 0.2.2 + + @@ -280,6 +286,8 @@ under the License. it.unimi.dsi:fastutil org.roaringbitmap:RoaringBitmap net.openhft:zero-allocation-hashing + com.github.davidmoten:hilbert-curve + com.github.davidmoten:guava-mini @@ -323,6 +331,14 @@ under the License. net.openhft.hashing org.apache.paimon.shade.net.openhft.hashing + + org.davidmoten.hilbert + org.apache.paimon.shade.org.davidmoten.hilbert + + + com.github.davidmoten.guavamini + org.apache.paimon.shade.com.github.davidmoten.guavamini + true diff --git a/paimon-core/src/main/java/org/apache/paimon/sort/hilbert/HilbertIndexer.java b/paimon-common/src/main/java/org/apache/paimon/sort/hilbert/HilbertIndexer.java similarity index 100% rename from paimon-core/src/main/java/org/apache/paimon/sort/hilbert/HilbertIndexer.java rename to paimon-common/src/main/java/org/apache/paimon/sort/hilbert/HilbertIndexer.java diff --git a/paimon-core/src/main/java/org/apache/paimon/utils/ConvertBinaryUtil.java b/paimon-common/src/main/java/org/apache/paimon/utils/ConvertBinaryUtil.java similarity index 100% rename from paimon-core/src/main/java/org/apache/paimon/utils/ConvertBinaryUtil.java rename to paimon-common/src/main/java/org/apache/paimon/utils/ConvertBinaryUtil.java diff --git a/paimon-common/src/main/resources/META-INF/NOTICE b/paimon-common/src/main/resources/META-INF/NOTICE index cd1ab89b8900..c58d808b7bcb 100644 --- a/paimon-common/src/main/resources/META-INF/NOTICE +++ b/paimon-common/src/main/resources/META-INF/NOTICE @@ -15,3 +15,5 @@ You find them under licenses/LICENSE.antlr-runtime and licenses/LICENSE.janino. - org.codehaus.janino:commons-compiler:3.0.11 - it.unimi.dsi:fastutil:8.5.12 - net.openhft:zero-allocation-hashing:0.16 +- com.github.davidmoten:hilbert-curve:0.2.2 +- com.github.davidmoten:guava-mini:0.1.3 diff --git a/paimon-core/pom.xml b/paimon-core/pom.xml index 5e7339e61e92..f4e028bdcb19 100644 --- a/paimon-core/pom.xml +++ b/paimon-core/pom.xml @@ -183,12 +183,6 @@ under the License. 3.6.1 - - com.github.davidmoten - hilbert-curve - 0.2.2 - - org.xerial sqlite-jdbc