Skip to content

Commit

Permalink
[CORE] Introduce custom protobuf dependency with recursion limit enla…
Browse files Browse the repository at this point in the history
…rged (#3814)
  • Loading branch information
PHILO-HE authored Nov 24, 2023
1 parent 4f63ddc commit 3520c9e
Show file tree
Hide file tree
Showing 8 changed files with 38 additions and 5 deletions.
5 changes: 5 additions & 0 deletions backends-clickhouse/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,11 @@
<version>${project.version}</version>
<scope>compile</scope>
</dependency>
<dependency>
<groupId>io.glutenproject</groupId>
<artifactId>protobuf-java</artifactId>
<version>${custom.protobuf.version}</version>
</dependency>
<dependency>
<groupId>io.glutenproject</groupId>
<artifactId>gluten-core</artifactId>
Expand Down
5 changes: 5 additions & 0 deletions backends-velox/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -38,6 +38,11 @@
<version>${project.version}</version>
<scope>compile</scope>
</dependency>
<dependency>
<groupId>io.glutenproject</groupId>
<artifactId>protobuf-java</artifactId>
<version>${custom.protobuf.version}</version>
</dependency>
<dependency>
<groupId>io.glutenproject</groupId>
<artifactId>gluten-core</artifactId>
Expand Down
6 changes: 6 additions & 0 deletions gluten-celeborn/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -37,6 +37,12 @@
<artifactId>spark-sql_${scala.binary.version}</artifactId>
<scope>provided</scope>
</dependency>
<dependency>
<groupId>com.google.guava</groupId>
<artifactId>guava</artifactId>
<version>${guava.version}</version>
<scope>provided</scope>
</dependency>
</dependencies>

<build>
Expand Down
5 changes: 3 additions & 2 deletions gluten-core/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -174,11 +174,12 @@
<groupId>com.google.protobuf</groupId>
<artifactId>protobuf-java</artifactId>
<version>${protobuf.version}</version>
<scope>provided</scope>
</dependency>
<dependency>
<groupId>com.google.protobuf</groupId>
<groupId>io.glutenproject</groupId>
<artifactId>protobuf-java-util</artifactId>
<version>${protobuf.version}</version>
<version>${custom.protobuf.version}</version>
</dependency>
<dependency>
<groupId>commons-io</groupId>
Expand Down
11 changes: 11 additions & 0 deletions gluten-data/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -51,6 +51,17 @@
<version>${project.version}</version>
<scope>compile</scope>
</dependency>
<dependency>
<groupId>io.glutenproject</groupId>
<artifactId>protobuf-java</artifactId>
<version>${custom.protobuf.version}</version>
</dependency>
<dependency>
<groupId>com.google.guava</groupId>
<artifactId>guava</artifactId>
<version>${guava.version}</version>
<scope>provided</scope>
</dependency>
<dependency>
<groupId>io.glutenproject</groupId>
<artifactId>gluten-core</artifactId>
Expand Down
3 changes: 2 additions & 1 deletion package/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -255,7 +255,8 @@
<ignoreClass>org.apache.spark.sql.execution.datasources.WriterBucketSpec$</ignoreClass>
<ignoreClass>org.apache.spark.sql.execution.datasources.InsertIntoHadoopFsRelationCommand</ignoreClass>
<ignoreClass>org.apache.spark.sql.execution.datasources.InsertIntoHadoopFsRelationCommand$</ignoreClass>

<!-- protobuf -->
<ignoreClass>com.google.protobuf.*</ignoreClass>
</ignoreClasses>
<scopes>
<scope>compile</scope>
Expand Down
4 changes: 4 additions & 0 deletions pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -65,7 +65,11 @@
<junit.version>4.13.1</junit.version>

<substrait.version>0.5.0</substrait.version>
<!-- The original protobuf version -->
<protobuf.version>3.23.4</protobuf.version>
<!-- The custom protobuf version (based on 3.23.4) with recursion limit enlarged. -->
<custom.protobuf.version>3.23.4-0</custom.protobuf.version>
<guava.version>32.0.1-jre</guava.version>
<!--spotless-->
<spotless.version>2.27.2</spotless.version>
<spotless.scalafmt.version>3.5.9</spotless.scalafmt.version>
Expand Down
4 changes: 2 additions & 2 deletions substrait/substrait-spark/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -46,9 +46,9 @@
<artifactId>core</artifactId>
</dependency>
<dependency>
<groupId>com.google.protobuf</groupId>
<groupId>io.glutenproject</groupId>
<artifactId>protobuf-java</artifactId>
<version>${protobuf.version}</version>
<version>${custom.protobuf.version}</version>
</dependency>
<dependency>
<groupId>com.fasterxml.jackson.core</groupId>
Expand Down

0 comments on commit 3520c9e

Please sign in to comment.