Skip to content

Commit 502ade2

Browse files
committed
[SPARK-44811][BUILD] Bump Guava 33.1.0-jre
1 parent 259760a commit 502ade2

File tree

8 files changed

+11
-13
lines changed

8 files changed

+11
-13
lines changed

assembly/pom.xml

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -75,11 +75,7 @@
7575
<version>${project.version}</version>
7676
</dependency>
7777

78-
<!--
79-
Because we don't shade dependencies anymore, we need to restore Guava to compile scope so
80-
that the libraries Spark depend on have it available. We'll package the version that Spark
81-
uses (14.0.1) which is not the same as Hadoop dependencies, but works.
82-
-->
78+
<!-- Restore Guava to compile scope so that the libraries Spark depend on have it available -->
8379
<dependency>
8480
<groupId>com.google.guava</groupId>
8581
<artifactId>guava</artifactId>

core/pom.xml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -546,6 +546,7 @@
546546
<include>org.eclipse.jetty:jetty-util</include>
547547
<include>org.eclipse.jetty:jetty-server</include>
548548
<include>com.google.guava:guava</include>
549+
<include>com.google.guava:failureaccess</include>
549550
<include>com.google.protobuf:*</include>
550551
</includes>
551552
</artifactSet>

dev/test-dependencies.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -49,7 +49,7 @@ OLD_VERSION=$($MVN -q \
4949
--non-recursive \
5050
org.codehaus.mojo:exec-maven-plugin:1.6.0:exec | grep -E '[0-9]+\.[0-9]+\.[0-9]+')
5151
# dependency:get for guava and jetty-io are workaround for SPARK-37302.
52-
GUAVA_VERSION=$(build/mvn help:evaluate -Dexpression=guava.version -q -DforceStdout | grep -E "^[0-9.]+$")
52+
GUAVA_VERSION=$(build/mvn help:evaluate -Dexpression=guava.version -q -DforceStdout | grep -E "^[0-9\.]+")
5353
build/mvn dependency:get -Dartifact=com.google.guava:guava:${GUAVA_VERSION} -q
5454
JETTY_VERSION=$(build/mvn help:evaluate -Dexpression=jetty.version -q -DforceStdout | grep -E "[0-9]+\.[0-9]+\.[0-9]+")
5555
build/mvn dependency:get -Dartifact=org.eclipse.jetty:jetty-io:${JETTY_VERSION} -q

pom.xml

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -197,7 +197,7 @@
197197
<!-- org.apache.commons/commons-pool2/-->
198198
<commons-pool2.version>2.12.0</commons-pool2.version>
199199
<datanucleus-core.version>4.1.17</datanucleus-core.version>
200-
<guava.version>14.0.1</guava.version>
200+
<guava.version>33.1.0-jre</guava.version>
201201
<janino.version>3.1.9</janino.version>
202202
<jersey.version>3.0.12</jersey.version>
203203
<joda.version>2.12.7</joda.version>
@@ -3446,6 +3446,7 @@
34463446
<includes>
34473447
<include>org.spark-project.spark:unused</include>
34483448
<include>com.google.guava:guava</include>
3449+
<include>com.google.guava:failureaccess</include>
34493450
<include>org.jpmml:*</include>
34503451
</includes>
34513452
</artifactSet>

project/SparkBuild.scala

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1052,7 +1052,7 @@ object KubernetesIntegrationTests {
10521052
* Overrides to work around sbt's dependency resolution being different from Maven's.
10531053
*/
10541054
object DependencyOverrides {
1055-
lazy val guavaVersion = sys.props.get("guava.version").getOrElse("14.0.1")
1055+
lazy val guavaVersion = sys.props.get("guava.version").getOrElse("33.1.0-jre")
10561056
lazy val settings = Seq(
10571057
dependencyOverrides += "com.google.guava" % "guava" % guavaVersion,
10581058
dependencyOverrides += "xerces" % "xercesImpl" % "2.12.2",

sql/catalyst/src/test/scala/org/apache/spark/sql/catalyst/expressions/IntervalExpressionsSuite.scala

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -341,7 +341,7 @@ class IntervalExpressionsSuite extends SparkFunSuite with ExpressionEvalHelper {
341341

342342
Seq(
343343
(Period.ofMonths(2), Int.MaxValue) -> "overflow",
344-
(Period.ofMonths(Int.MinValue), 10d) -> "not in range",
344+
(Period.ofMonths(Int.MinValue), 10d) -> "out of range",
345345
(Period.ofMonths(-100), Float.NaN) -> "input is infinite or NaN",
346346
(Period.ofMonths(200), Double.PositiveInfinity) -> "input is infinite or NaN",
347347
(Period.ofMonths(-200), Float.NegativeInfinity) -> "input is infinite or NaN"

sql/core/src/test/resources/sql-tests/results/ansi/interval.sql.out

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2866,7 +2866,7 @@ SELECT (INTERVAL '-178956970-8' YEAR TO MONTH) / -1.0D
28662866
struct<>
28672867
-- !query output
28682868
java.lang.ArithmeticException
2869-
not in range
2869+
rounded value is out of range for input 2.147483648E9 and rounding mode HALF_UP
28702870

28712871

28722872
-- !query
@@ -2946,7 +2946,7 @@ SELECT (INTERVAL '-106751991 04:00:54.775808' DAY TO SECOND) / -1.0D
29462946
struct<>
29472947
-- !query output
29482948
java.lang.ArithmeticException
2949-
not in range
2949+
rounded value is out of range for input 9.223372036854776E18 and rounding mode HALF_UP
29502950

29512951

29522952
-- !query

sql/core/src/test/resources/sql-tests/results/interval.sql.out

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2679,7 +2679,7 @@ SELECT (INTERVAL '-178956970-8' YEAR TO MONTH) / -1.0D
26792679
struct<>
26802680
-- !query output
26812681
java.lang.ArithmeticException
2682-
not in range
2682+
rounded value is out of range for input 2.147483648E9 and rounding mode HALF_UP
26832683

26842684

26852685
-- !query
@@ -2759,7 +2759,7 @@ SELECT (INTERVAL '-106751991 04:00:54.775808' DAY TO SECOND) / -1.0D
27592759
struct<>
27602760
-- !query output
27612761
java.lang.ArithmeticException
2762-
not in range
2762+
rounded value is out of range for input 9.223372036854776E18 and rounding mode HALF_UP
27632763

27642764

27652765
-- !query

0 commit comments

Comments
 (0)