You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
chore(QTDI-3819): Upgrade Apache Beam to 2.61.0 - #1340
Any code change adding any logic MUST be tested through a unit test executed with the default build
Any API addition MUST be done with a documentation update if relevant
Why this PR is needed?
QTDI-3819: component-runtime ships Beam 2.46.0 while data-processing-runtime uses 2.61.0, causing NoClassDefFoundError: org.apache.beam.sdk.util.construction.resources.PipelineResourcesDetector in FullRunJob (QTDI-3792). component-runtime is the reference for the Beam version.
What does this PR adds (design/code thoughts)?
beam.version 2.46.0 -> 2.61.0.
beam-sdks-java-extensions-avro added (managed in the root pom; added to beam, beam-junit, di, server image and server sample): AvroCoder moved there.
Removed the dropped @Experimental annotation; AvroRecord converts java.time.Instant values (now produced by the Beam Avro coder) to epoch millis/micros.
beam-junit Data.of snapshots its input: Beam 2.61 reads Create elements more than once and the join input is single-pass.
FlinkRunnerEnvironment uses beam-runners-flink-1.19 (1.14 does not exist in 2.61).
IndicesTest (approved change): the shaded avro package no longer exists in beam-sdks-java-core.
Potentially breaking for consumers pinned on Beam 2.46. Studio is not concerned.
Local: UT green on beam, beam-junit, di; related modules build. serialization-over-cluster IT fails the same on the 2.46 baseline (Maven resolver env issue).
Align component-runtime with the Beam version used by
data-processing-runtime (fixes the NoClassDefFoundError on
PipelineResourcesDetector seen in QTDI-3792).
- bump beam.version 2.46.0 -> 2.61.0
- add beam-sdks-java-extensions-avro (AvroCoder moved there)
- drop removed @experimental annotation
- convert java.time.Instant values in AvroRecord
- snapshot single-pass iterables in beam-junit Data.of
- use beam-runners-flink-1.19 in FlinkRunnerEnvironment
Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
Upgrades the repository’s Apache Beam baseline from 2.46.0 to 2.61.0 and adapts runtime, testing, Avro serialization, runner, and packaging integrations to Beam’s updated APIs and dependency layout.
Changes:
Updates Beam dependencies and adds the Avro extensions SDK where required.
Switches the Flink runner to 1.19 and snapshots single-pass Beam test inputs.
The reason will be displayed to describe this comment to others. Learn more.
🟡 Changes recommended
The change leaves the Avro extension outside the Beam isolation index, so components declaring it may load a duplicate class copy and encounter class-identity conflicts.
The reason will be displayed to describe this comment to others. Learn more.
🔵 Needs a closer look
A critical unresolved dependency-packaging issue can leave the production Direct runner without AvroCoder and cause a NoClassDefFoundError at runtime.
No open issues 🎉
1 previously missed issue
In code that hasn't changed since last review
Add Beam Avro extension to generated runner dependency descriptors
component-runtime-beam/pom.xml:75
The new provided dependency is not included in the Beam runner dependency descriptors generated by RunnerDependencies.groovy, which still resolves each descriptor from only beam-runners-direct-java or beam-runners-spark-3. The PR's own BeamEnvironment comment notes that the extension is not transitive for the non-Spark runner, so a production/runtime path using beam-runner_beam-runners-direct-java.dependencies can still load component-runtime-beam without AvroCoder and fail with NoClassDefFoundError. Add the extension as an explicit root to the runner dependency assembly (or otherwise include it in both generated descriptors).
The reason will be displayed to describe this comment to others. Learn more.
🔵 Needs a closer look
Human assessment is needed because timestamp normalization covers only root fields, leaving nested records or arrays potentially inconsistent for equality, hashing, or serialization.
Beam 2.61 registers java-time conversions by default for reflect datum
factories, turning date/time fields into LocalDate/LocalTime. Use a datum
factory without logical type conversions to keep Beam 2.46 behavior.
Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Requirements
Why this PR is needed?
QTDI-3819: component-runtime ships Beam 2.46.0 while data-processing-runtime uses 2.61.0, causing
NoClassDefFoundError: org.apache.beam.sdk.util.construction.resources.PipelineResourcesDetectorinFullRunJob(QTDI-3792). component-runtime is the reference for the Beam version.What does this PR adds (design/code thoughts)?
beam.version2.46.0 -> 2.61.0.beam-sdks-java-extensions-avroadded (managed in the root pom; added to beam, beam-junit, di, server image and server sample):AvroCodermoved there.@Experimentalannotation;AvroRecordconvertsjava.time.Instantvalues (now produced by the Beam Avro coder) to epoch millis/micros.Data.ofsnapshots its input: Beam 2.61 readsCreateelements more than once and the join input is single-pass.FlinkRunnerEnvironmentusesbeam-runners-flink-1.19(1.14 does not exist in 2.61).IndicesTest(approved change): the shaded avro package no longer exists in beam-sdks-java-core.serialization-over-clusterIT fails the same on the 2.46 baseline (Maven resolver env issue).AI generated code
https://internal.qlik.dev/general/ways-of-working/code-reviews/#guidelines-for-ai-generated-code