Skip to content

Commit c5d0ab1

Browse files
authored
Bump Java bytecode compatibility version to Java11 (#38267)
1 parent c782e1c commit c5d0ab1

14 files changed

Lines changed: 21 additions & 367 deletions

File tree

.github/workflows/beam_PostCommit_Java_Examples_Dataflow_Java.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -60,7 +60,7 @@ jobs:
6060
matrix:
6161
job_name: [beam_PostCommit_Java_Examples_Dataflow_Java]
6262
job_phrase: [Run Java examples on Dataflow Java]
63-
java_version: ['8','17','21', '25']
63+
java_version: ['17', '21', '25']
6464
if: |
6565
github.event_name == 'workflow_dispatch' ||
6666
github.event_name == 'pull_request_target' ||

.github/workflows/beam_PostCommit_Java_Examples_Dataflow_V2_Java.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -61,7 +61,7 @@ jobs:
6161
job_name: [beam_PostCommit_Java_Examples_Dataflow_V2_Java]
6262
job_phrase_1: [Run Java ]
6363
job_phrase_2: [Examples on Dataflow Runner V2]
64-
java_version: ['8', '17', '21', '25']
64+
java_version: ['17', '21', '25']
6565
if: |
6666
github.event_name == 'workflow_dispatch' ||
6767
github.event_name == 'pull_request_target' ||

.github/workflows/beam_PostCommit_Java_Hadoop_Versions.yml

Lines changed: 0 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -72,22 +72,10 @@ jobs:
7272
github_job: ${{ matrix.job_name }} (${{ matrix.job_phrase }})
7373
- name: Setup environment
7474
uses: ./.github/actions/setup-environment-action
75-
with:
76-
java-version: |
77-
8
78-
11
7975
- name: run javaHadoopVersionsTest script
8076
uses: ./.github/actions/gradle-command-self-hosted-action
8177
with:
8278
gradle-command: :javaHadoopVersionsTest
83-
# TODO(https://github.com/apache/beam/issues/32189) remove when embedded hive supports Java11
84-
- name: run java8HadoopVersionsTest script
85-
uses: ./.github/actions/gradle-command-self-hosted-action
86-
with:
87-
gradle-command: :sdks:java:io:hcatalog:hadoopVersionsTest
88-
arguments: |
89-
-PtestJavaVersion=8 \
90-
-Pjava8Home=$JAVA_HOME_8_X64 \
9179
- name: Archive JUnit Test Results
9280
uses: actions/upload-artifact@v4
9381
if: ${{ !success() }}

.github/workflows/beam_PostCommit_Java_ValidatesRunner_Flink_Java8.yml

Lines changed: 0 additions & 102 deletions
This file was deleted.

.github/workflows/beam_PostCommit_Java_ValidatesRunner_Spark_Java8.yml

Lines changed: 0 additions & 102 deletions
This file was deleted.

.github/workflows/beam_PreCommit_SQL_Java8.yml

Lines changed: 0 additions & 129 deletions
This file was deleted.

CHANGES.md

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -77,6 +77,8 @@
7777
([#38139](https://github.com/apache/beam/issues/38139)).
7878
* (Python) Added type alias for with_exception_handling to be used for typehints. ([#38173](https://github.com/apache/beam/issues/38173)).
7979
* Added plugin mechanism to support different Lineage implementations (Java) ([#36790](https://github.com/apache/beam/issues/36790)).
80+
* (Python) Supported Python user type in Beam SQL. For example, SQL statements like `SELECT some_field from PCOLLECTION` can now operate a PCollection of Beam Row containing pickable Python user type ([#20738](https://github.com/apache/beam/issues/20738)).
81+
* (Python) Introduced `beam.coders.registry.register_row` as preferred API to register a named tuple or dataclass with a Beam Row. At pipelne runtime, the original type associated with the registered row are preserved across the serialization boundary ([#38108](https://github.com/apache/beam/issues/38108)).
8082

8183
## Breaking Changes
8284

@@ -85,6 +87,7 @@
8587
## Deprecations
8688

8789
* X behavior is deprecated and will be removed in X versions ([#X](https://github.com/apache/beam/issues/X)).
90+
* Dropped Java 8 support ([#31678](https://github.com/apache/beam/issues/31678)).
8891
* Removed Samza Runner support ([#35448](https://github.com/apache/beam/issues/35448)).
8992

9093
## Bugfixes

0 commit comments

Comments
 (0)