Skip to content

[Migrate] Migrate streampark-flink-sqlclient from Scala to Java - #4462

Open
shangeyao wants to merge 5 commits into
apache:devfrom
shangeyao:migrate/4448-flink-sqlclient-scala-to-java
Open

[Migrate] Migrate streampark-flink-sqlclient from Scala to Java#4462
shangeyao wants to merge 5 commits into
apache:devfrom
shangeyao:migrate/4448-flink-sqlclient-scala-to-java

Conversation

@shangeyao

Copy link
Copy Markdown
Contributor

Summary

Dependency chain

This branch builds on #4447 (shims migration, PR #4461). Merge #4461 first, or review as stacked.

Acceptance (#4448)

  • No .scala under streampark-flink-sqlclient (src/main + src/test)
  • Module builds, tests, and shade package succeed
  • mainClass remains org.apache.streampark.flink.cli.SqlClient

Test plan

  • mvn -pl streampark-flink/streampark-flink-sqlclient -am package -DskipITs
  • SqlClientTest (SET command + dynamic property mode resolution)
  • CI Sonar / Backend (on merge)

Closes #4448

Made with Cursor

@shangeyao shangeyao changed the title [Migrate] #4448 Migrate streampark-flink-sqlclient from Scala to Java [Migrate] Migrate streampark-flink-sqlclient from Scala to Java Jul 27, 2026
shangeyao and others added 5 commits July 27, 2026 16:04
…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>
…o Java

Convert SqlClient CLI entry to Java while preserving FQCN and submission
behavior, remove enumeratum dependency, and add unit tests for runtime mode
resolution.

Co-authored-by: Cursor <cursoragent@cursor.com>
@shangeyao
shangeyao force-pushed the migrate/4448-flink-sqlclient-scala-to-java branch from e72fb0c to aa0ad20 Compare July 27, 2026 08:05
@sonarqubecloud

Copy link
Copy Markdown

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

[Flink] Migrate streampark-flink-sqlclient from Scala to Java

1 participant