Skip to content

Commit

Permalink
[Optimization-2694][flink] Upgrade Flink and Flink CDC (#2695)
Browse files Browse the repository at this point in the history
Co-authored-by: wenmo <[email protected]>
  • Loading branch information
aiwenmo and aiwenmo authored Dec 19, 2023
1 parent 19d921f commit 177330d
Show file tree
Hide file tree
Showing 10 changed files with 22 additions and 17 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -79,7 +79,6 @@
from (select max(ji.id) as id from dinky_job_instance ji group by ji.task_id) as a
left join dinky_job_instance dji on dji.id = a.id
left join dinky_history dh on dji.history_id = dh.id) b
group by b.batch;
</select>

<select id="listJobInstanceActive" resultType="org.dinky.data.model.job.JobInstance">
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -34,8 +34,8 @@
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;

import com.ververica.cdc.connectors.base.options.StartupOptions;
import com.ververica.cdc.connectors.sqlserver.SqlServerSource;
import com.ververica.cdc.connectors.sqlserver.table.StartupOptions;
import com.ververica.cdc.debezium.JsonDebeziumDeserializationSchema;

public class SqlServerCDCBuilder extends AbstractCDCBuilder implements CDCBuilder {
Expand Down
6 changes: 6 additions & 0 deletions dinky-cdc/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -47,5 +47,11 @@
<module>dinky-cdc-plus</module>
</modules>
</profile>
<profile>
<id>flink-1.18</id>
<modules>
<module>dinky-cdc-plus</module>
</modules>
</profile>
</profiles>
</project>
2 changes: 1 addition & 1 deletion dinky-flink/dinky-flink-1.14/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@
<commons.version>1.3.1</commons.version>
<flink.guava.version>14.0</flink.guava.version>
<flink.version>1.14.6</flink.version>
<flinkcdc.version>2.3.0</flinkcdc.version>
<flinkcdc.version>3.0.0</flinkcdc.version>
<junit.version>4.12</junit.version>
</properties>

Expand Down
4 changes: 2 additions & 2 deletions dinky-flink/dinky-flink-1.15/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -33,8 +33,8 @@
<properties>
<commons.version>1.3.1</commons.version>
<flink.guava.version>15.0</flink.guava.version>
<flink.version>1.15.2</flink.version>
<flinkcdc.version>2.3.0</flinkcdc.version>
<flink.version>1.15.4</flink.version>
<flinkcdc.version>3.0.0</flinkcdc.version>
<junit.version>4.12</junit.version>
</properties>

Expand Down
4 changes: 2 additions & 2 deletions dinky-flink/dinky-flink-1.16/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -17,8 +17,8 @@
<properties>
<commons.version>1.3.1</commons.version>
<flink.guava.version>16.0</flink.guava.version>
<flink.version>1.16.2</flink.version>
<flinkcdc.version>2.3.0</flinkcdc.version>
<flink.version>1.16.3</flink.version>
<flinkcdc.version>3.0.0</flinkcdc.version>
</properties>

<dependencies>
Expand Down
8 changes: 4 additions & 4 deletions dinky-flink/dinky-flink-1.17/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -16,9 +16,9 @@

<properties>
<commons.version>1.3.1</commons.version>
<flink.guava.version>17.0</flink.guava.version>
<flink.version>1.17.1</flink.version>
<flinkcdc.version>2.3.0</flinkcdc.version>
<flink.shaded.version>16.1</flink.shaded.version>
<flink.version>1.17.2</flink.version>
<flinkcdc.version>3.0.0</flinkcdc.version>
</properties>

<dependencies>
Expand Down Expand Up @@ -77,7 +77,7 @@
<dependency>
<groupId>org.apache.flink</groupId>
<artifactId>flink-shaded-guava</artifactId>
<version>31.1-jre-${flink.guava.version}</version>
<version>30.1.1-jre-${flink.shaded.version}</version>
</dependency>
<dependency>
<groupId>com.ververica</groupId>
Expand Down
6 changes: 3 additions & 3 deletions dinky-flink/dinky-flink-1.18/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -16,9 +16,9 @@

<properties>
<commons.version>1.3.1</commons.version>
<flink.guava.version>17.0</flink.guava.version>
<flink.shaded.version>17.0</flink.shaded.version>
<flink.version>1.18.0</flink.version>
<flinkcdc.version>2.3.0</flinkcdc.version>
<flinkcdc.version>3.0.0</flinkcdc.version>
</properties>

<dependencies>
Expand Down Expand Up @@ -77,7 +77,7 @@
<dependency>
<groupId>org.apache.flink</groupId>
<artifactId>flink-shaded-guava</artifactId>
<version>31.1-jre-${flink.guava.version}</version>
<version>31.1-jre-${flink.shaded.version}</version>
</dependency>
<dependency>
<groupId>com.ververica</groupId>
Expand Down
4 changes: 2 additions & 2 deletions pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -57,12 +57,12 @@
<!-- jexl cannot be upgraded to 3.3, and static methods need to be used.(jexl不能升级到3.3,需要使用到静态方法的使用) -->
<commons-jexl3>3.2.1</commons-jexl3>
<commons-lang3.version>3.3.2</commons-lang3.version>
<dinky.flink.version>1.14</dinky.flink.version>
<dinky.flink.version>1.18</dinky.flink.version>
<docker.java.version>3.2.14</docker.java.version>
<druid-starter>1.2.8</druid-starter>
<easy.rules.version>4.1.0</easy.rules.version>
<fastjson2.version>2.0.41</fastjson2.version>
<flink.version>1.14.6</flink.version>
<flink.version>1.18.0</flink.version>
<guava.version>31.1-jre</guava.version>
<h2database.version>1.4.200</h2database.version>
<hamcrest.version>1.3</hamcrest.version>
Expand Down
2 changes: 1 addition & 1 deletion script/bin/auto.sh
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
#!/bin/bash

FLINK_VERSION=${2:-1.14}
FLINK_VERSION=${2:-1.18}

JAR_NAME="dinky-admin"

Expand Down

0 comments on commit 177330d

Please sign in to comment.