[ https://issues.apache.org/jira/browse/FLINK-39426 ]


    Paras Negi deleted comment on FLINK-39426:
    ------------------------------------

was (Author: JIRAUSER312767):
{{flink-connector-jdbc}} stops at 3.3.0-1.20 — that was the umbrella-jar 
(bundling {{-core}} + all dialects), and it was explicitly removed as 
deprecated in commit 
[891c0e9|https://github.com/apache/flink-connector-jdbc/commit/891c0e9cd373] 
("Remove deprecated flink-connector-jdbc module") as part of [PR 
#153|https://github.com/apache/flink-connector-jdbc/pull/153].

The Flink 2.0 release itself is tracked in FLINK-36659 (Resolved/Implemented, 
fixVersion jdbc-4.0.0) and was published to Maven Central on 2025-04-17. In 4.0 
users depend on the per-database module instead, e.g. 
[flink-connector-jdbc-postgres:4.0.0-2.0|https://repo1.maven.org/maven2/org/apache/flink/flink-connector-jdbc-postgres/4.0.0-2.0/]
 (which transitively pulls in {{{}-core{}}}).
||Artifact||3.3.0-1.20 (Flink 1.x)||4.0.0-2.0 (Flink 2.x)||
|{{flink-connector-jdbc}} (shaded uber-jar)|(/)|(x) removed|
|{{flink-connector-jdbc-core}}|(/)|(/)|
|{{flink-connector-jdbc-postgres}} / {{-mysql}} / {{-oracle}} / …|(/)|(/)|

So the Flink 2.x-compatible JDBC connector exists — just under the per-DB 
coordinates rather than the old {{flink-connector-jdbc}} name.

> Flink 2.0 and Connector version compatibility issue
> ---------------------------------------------------
>
>                 Key: FLINK-39426
>                 URL: https://issues.apache.org/jira/browse/FLINK-39426
>             Project: Flink
>          Issue Type: Bug
>          Components: API / Core
>    Affects Versions: 2.2.0
>         Environment: dev
>            Reporter: Xueyan Wang
>            Assignee: Paras Negi
>            Priority: Critical
>              Labels: pull-request-available
>
> {code:java}
> <dependency>
>     <groupId>org.apache.flink</groupId>
>     <artifactId>flink-connector-jdbc</artifactId>
>     <version>3.3.0-1.20</version>
> </dependency> {code}
> {code:java}
> Compilation failure
> cannot access org.apache.flink.api.connector.sink2.StatefulSink [ERROR]   
> class file for org.apache.flink.api.connector.sink2.StatefulSink not found
> {code}
> Possible reason: Many existing connectors (e.g., Kafka Connector 3.x) still 
> reference {{{}StatefulSink{}}}, which was present in Flink 1.x but is being 
> phased out or changed in 2.x.



--
This message was sent by Atlassian Jira
(v8.20.10#820010)

Reply via email to