[Migrate] Migrate streampark-flink-shims from Scala to Java - #4461
Merged
wolfboys merged 5 commits intoJul 28, 2026
Conversation
This was referenced Jul 27, 2026
…Java streampark-flink-core was removed in apache#4432; migrate equivalent core infrastructure in streampark-flink-shims-base. Convert config, CLI, client traits, and env utils to Java while keeping Scala initializers/traits compiling against Java APIs. Closes apache#4446 (partial — 8/15 Scala files migrated) Co-authored-by: Cursor <cursoragent@cursor.com>
…tializers to Java Move SqlCommandParser, FlinkSqlExecutor, FlinkSqlValidator, and environment initializers from Scala to Java while keeping Scala trait bridges unchanged. Co-authored-by: Cursor <cursoragent@cursor.com>
…to-Java migration Convert FlinkStreamTableTrait, version-specific contexts/clients, and shims-test to Java; remove all remaining Scala sources under streampark-flink-shims. Co-authored-by: Cursor <cursoragent@cursor.com>
Add SonarCloud CPD exclusions for versioned shims modules, fix unused exception in FlinkTableInitializer, and simplify SqlCommandConverters quote stripping to satisfy reliability rules. Co-authored-by: Cursor <cursoragent@cursor.com>
shangeyao
force-pushed
the
migrate/4447-flink-shims-scala-to-java
branch
from
July 27, 2026 08:05
2021c1b to
6f21efe
Compare
SqlCommandCall.operands is now a nullary Java accessor; use operands()(n) instead of operands(n) to avoid passing the index to the method itself. Co-authored-by: Cursor <cursoragent@cursor.com>
|
3 tasks
This was referenced Jul 29, 2026
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.



Summary
streampark-flink-shimssources (base + Flink 1.12–1.20 + shims-test) from Scala to Java with no remaining.scalaundersrc/mainorsrc/test.streampark-commonJava migration) and related JDK 11 / CI fixes already on this branch.TableContext/StreamTableContext, cluster/k8s client wrappers, and Scala-bridge Flink APIs used bysqlclient/ console submit paths.Migration phases (this PR)
FlinkConfiguration, traits, utils, config types)SqlCommandParser,FlinkSqlExecutor,FlinkSqlValidator, initializers)FlinkTableTrait/FlinkStreamTableTrait, per-version contexts/clients/TableExt, JUnit 5 shims-testAcceptance (#4447)
.scalaunderstreampark-flink-shims(src/main+src/test)streampark-flink-shims-testpasses (11 tests)Test plan
mvn -f streampark-flink/streampark-flink-shims/pom.xml clean compilemvn -f streampark-flink/streampark-flink-shims/pom.xml test -DskipITsCloses #4447
Made with Cursor