Skip to content

Commit 89f06e8

Browse files
peterphitranclaude
andcommitted
[IcebergIO] Raise Java 17 floor for IcebergIO's Java 11 dependents
Bumping the iceberg module to Java 17 (Iceberg 1.11.0 dropped Java 11) breaks the Java 11 modules that depend on it, because Gradle's JVM-version variant resolution refuses to let a Java 11 consumer depend on a Java 17 library. Raise requireJavaVersion 11 -> 17 in: - sdks/java/extensions/sql/iceberg - examples/java/iceberg The Java IO expansion service (sdks/java/io/expansion-service) also depends on IcebergIO but was already raised to Java 17 on master in #38974 (for Delta Lake), so it needs no change here. For #38925 Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
1 parent e1fdb50 commit 89f06e8

3 files changed

Lines changed: 6 additions & 6 deletions

File tree

CHANGES.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -62,7 +62,6 @@
6262
* Python SDK now supports memory profiling with Memray ([#38853](https://github.com/apache/beam/issues/38853)).
6363
* (Python) Added [Qdrant](https://qdrant.tech/) VectorDatabaseWriteConfig implementation ([#38141](https://github.com/apache/beam/issues/38141)).
6464

65-
6665
## I/Os
6766

6867
* Support for reading from Delta Lake added (Java) ([#38551](https://github.com/apache/beam/issues/38551)).
@@ -83,6 +82,7 @@
8382
use pipeline option `--exclude_infer_dataclass_field_type` ([#38797](https://github.com/apache/beam/issues/38797)).
8483
However fixing forward is recommended.
8584
* (Java) IcebergIO now requires Java 17 at runtime. This raises the floor in preparation for the Iceberg 1.11.0 upgrade, which is published as Java 17 bytecode. Pipelines using `Managed.read(ICEBERG)`/`Managed.write(ICEBERG)` must run on a Java 17+ JVM ([#38925](https://github.com/apache/beam/issues/38925)).
85+
* (Java) Beam SQL's IcebergIO extension now requires Java 17, as it depends on the IcebergIO module ([#38925](https://github.com/apache/beam/issues/38925)).
8686

8787
## Deprecations
8888

@@ -2474,4 +2474,4 @@ Schema Options, it will be removed in version `2.23.0`. ([BEAM-9704](https://iss
24742474

24752475
## Highlights
24762476

2477-
- For versions 2.19.0 and older release notes are available on [Apache Beam Blog](https://beam.apache.org/blog/).
2477+
- For versions 2.19.0 and older release notes are available on [Apache Beam Blog](https://beam.apache.org/blog/).

examples/java/iceberg/build.gradle

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -26,8 +26,8 @@ plugins {
2626
applyJavaNature(
2727
exportJavadoc: false,
2828
automaticModuleName: 'org.apache.beam.examples.iceberg',
29-
// iceberg requires Java11+
30-
requireJavaVersion: JavaVersion.VERSION_11
29+
// iceberg requires Java17+
30+
requireJavaVersion: JavaVersion.VERSION_17
3131
)
3232

3333
description = "Apache Beam :: Examples :: Java :: Iceberg"

sdks/java/extensions/sql/iceberg/build.gradle

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -22,8 +22,8 @@ plugins { id 'org.apache.beam.module' }
2222

2323
applyJavaNature(
2424
automaticModuleName: 'org.apache.beam.sdk.extensions.sql.meta.provider.hcatalog',
25-
// iceberg requires Java11+
26-
requireJavaVersion: JavaVersion.VERSION_11,
25+
// iceberg requires Java17+
26+
requireJavaVersion: JavaVersion.VERSION_17,
2727
)
2828

2929
dependencies {

0 commit comments

Comments
 (0)