Add the BT Connector for Flink 2.1 #91
Open
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.
Upgrade Bigtable Connector to Apache Flink 2.1
Fixes # (no existing issue - opening PR for discussion)
Summary
This PR upgrades the Flink Bigtable connector from Apache Flink 1.20.0 to 2.1.0, ensuring compatibility with the latest Flink 2.x series released in December 2025.
Changes Made
1. Core API Updates
Sink.InitContext(BigtableSink.java)createWriter(Sink.InitContext)method which was already deprecated and throwingUnsupportedOperationExceptioncreateWriter(WriterInitContext)which is the supported API in Flink 2.x2. Version Upgrade
1.20.0to2.1.0in pom.xml3. Example Code Fixes
org.apache.flink.api.java.utils.ParameterToolorg.apache.flink.util.ParameterToolWriteExactlyOnce.javaWriteGenericRecord.javaWriteGenericRecordNested.javaWriteRowData.javaWriteRowDataNested.javaWriteTableAPI.javaWriteTableAPINested.javaWriteWithFunction.java4. Shaded JAR Configuration
shade-pom.xmlfor building a self-contained connector JARprovided)Testing
Compatibility Notes
Checklist