[#9710] feat(flink-connector): add Flink 1.19 and 1.20 support#11071
Open
FANNG1 wants to merge 1 commit into
Open
[#9710] feat(flink-connector): add Flink 1.19 and 1.20 support#11071FANNG1 wants to merge 1 commit into
FANNG1 wants to merge 1 commit into
Conversation
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
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
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.
What changes were proposed in this pull request?
This PR adds Gravitino Flink connector support for Flink 1.19 and Flink 1.20
on top of the versioned-layout baseline established for Flink 1.18 (#10517).
Main changes:
flink-connector/v1.19/flink+flink-connector/v1.19/flink-runtimemodules.
flink-connector/v1.20/flink+flink-connector/v1.20/flink-runtimemodules.
*Flink119/*Flink120) for Hive, Iceberg, JDBC-MySQL, JDBC-Postgres, and Paimon.CatalogCompatFlink119(behaviour-identical to the defaulthook) and
CatalogCompatFlink120that usesCatalogTable.newBuilder(...)because
CatalogTable.of(...)is deprecated in Flink 1.20.org.apache.flink.connector.jdbc.core.*factory packages shipped inflink-connector-jdbc 3.3.0-1.19/3.3.0-1.20.version.
testCreateGravitinoHiveCatalogRequireOptions— Flink 1.20 reportsmissing required catalog options as
IllegalArgumentExceptionratherthan the
ValidationExceptionthrown by older minor versions.tests across 1.18, 1.19, and 1.20.
No
flink-commonchanges are required; the 1.18 baseline already exposesthe necessary extension hooks (
BaseCatalog#catalogCompat(), the protectedGravitinoJdbcCatalog(Context, ..., AbstractCatalog)constructor, etc.).This PR supersedes #11061 (closed) and the now-stale #10501.
Why are the changes needed?
The Flink 1.18 baseline (#10517) was intentionally limited to one minor and
deferred 1.19 / 1.20 to follow-up work under parent issue #9710. This PR
is that follow-up, so users can target the two currently-maintained Flink
minor versions.
Fix: #9710
Does this PR introduce any user-facing change?
Yes. Two new connector artifacts are produced:
gravitino-flink-connector-runtime-1.19_2.12gravitino-flink-connector-runtime-1.20_2.12The user-facing SQL syntax is unchanged.
How was this patch tested?
Local validations (all green):
./gradlew spotlessApply./gradlew :flink-connector:flink-1.19:test -PskipITs./gradlew :flink-connector:flink-1.20:test -PskipITs./gradlew :flink-connector:flink-runtime-1.19:test./gradlew :flink-connector:flink-runtime-1.20:test./gradlew :flink-connector:flink-runtime-1.19:shadowJar :flink-connector:flink-runtime-1.20:shadowJarThe runtime-jar tests verify that the version-specific SPI descriptors
(
META-INF/services/org.apache.flink.table.factories.Factory) are mergedinto the shaded uber-jar.
The full Hive / Iceberg / JDBC / Paimon integration tests for both new
minor versions will run in CI via the updated
.github/workflows/flink-integration-test-action.yml.