Skip to content

Commit

Permalink
add flink 1.18 support
Browse files Browse the repository at this point in the history
  • Loading branch information
czy006 committed Aug 28, 2024
1 parent ae8a6eb commit 38ad59f
Show file tree
Hide file tree
Showing 12 changed files with 36 additions and 52 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@
<url>https://amoro.apache.org</url>

<properties>
<flink.version>1.17.1</flink.version>
<flink.version>1.18.1</flink.version>
</properties>

<dependencies>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -31,10 +31,9 @@
<url>https://amoro.apache.org</url>

<properties>
<kafka.version>3.2.3</kafka.version>
<assertj.version>3.21.0</assertj.version>
<testcontainers.version>1.17.2</testcontainers.version>
<flink.version>1.17.1</flink.version>
<testcontainers.version>1.18.3</testcontainers.version>
<flink.version>1.18.1</flink.version>
</properties>

<dependencies>
Expand All @@ -58,7 +57,7 @@

<dependency>
<groupId>org.apache.iceberg</groupId>
<artifactId>iceberg-flink-1.17</artifactId>
<artifactId>iceberg-flink-1.18</artifactId>
<version>${iceberg.version}</version>
<scope>provided</scope>
<exclusions>
Expand Down Expand Up @@ -99,7 +98,7 @@
<dependency>
<groupId>org.apache.flink</groupId>
<artifactId>flink-connector-kafka</artifactId>
<version>${flink.version}</version>
<version>3.2.0-1.18</version>
<scope>provided</scope>
</dependency>

Expand Down Expand Up @@ -184,7 +183,7 @@

<dependency>
<groupId>org.apache.iceberg</groupId>
<artifactId>iceberg-flink-1.17</artifactId>
<artifactId>iceberg-flink-1.18</artifactId>
<version>${iceberg.version}</version>
<classifier>tests</classifier>
<scope>test</scope>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -34,10 +34,9 @@
<packaging>jar</packaging>

<properties>
<kafka.version>3.2.3</kafka.version>
<assertj.version>3.21.0</assertj.version>
<testcontainers.version>1.17.2</testcontainers.version>
<flink.version>1.17.1</flink.version>
<testcontainers.version>1.18.3</testcontainers.version>
<flink.version>1.18.1</flink.version>
</properties>

<dependencies>
Expand Down Expand Up @@ -66,7 +65,7 @@

<dependency>
<groupId>org.apache.iceberg</groupId>
<artifactId>iceberg-flink-1.17</artifactId>
<artifactId>iceberg-flink-1.18</artifactId>
<version>${iceberg.version}</version>
<scope>provided</scope>
<exclusions>
Expand Down Expand Up @@ -119,7 +118,7 @@
<dependency>
<groupId>org.apache.flink</groupId>
<artifactId>flink-connector-kafka</artifactId>
<version>${flink.version}</version>
<version>3.2.0-1.18</version>
<scope>provided</scope>
</dependency>

Expand Down Expand Up @@ -221,7 +220,7 @@

<dependency>
<groupId>org.apache.iceberg</groupId>
<artifactId>iceberg-flink-1.17</artifactId>
<artifactId>iceberg-flink-1.18</artifactId>
<version>${iceberg.version}</version>
<classifier>tests</classifier>
<scope>test</scope>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -23,8 +23,8 @@
import org.apache.flink.annotation.VisibleForTesting;
import org.apache.flink.metrics.Gauge;
import org.apache.flink.metrics.MetricGroup;
import org.apache.flink.shaded.guava30.com.google.common.cache.Cache;
import org.apache.flink.shaded.guava30.com.google.common.cache.CacheBuilder;
import org.apache.flink.shaded.guava31.com.google.common.cache.Cache;
import org.apache.flink.shaded.guava31.com.google.common.cache.CacheBuilder;
import org.apache.flink.table.data.RowData;
import org.apache.flink.types.RowKind;
import org.apache.flink.util.FlinkRuntimeException;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@
import org.apache.amoro.utils.map.RocksDBBackend;
import org.apache.commons.collections.CollectionUtils;
import org.apache.flink.metrics.MetricGroup;
import org.apache.flink.shaded.guava30.com.google.common.cache.Cache;
import org.apache.flink.shaded.guava31.com.google.common.cache.Cache;
import org.apache.flink.table.data.RowData;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -179,7 +179,7 @@ public SplitEnumerator<KafkaPartitionSplit, KafkaSourceEnumState> restoreEnumera
props,
enumContext,
boundedness,
checkpoint.assignedPartitions());
checkpoint);
}

@Internal
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -30,9 +30,9 @@
import org.apache.flink.core.memory.DataInputDeserializer;
import org.apache.flink.core.memory.DataOutputSerializer;
import org.apache.flink.metrics.groups.UnregisteredMetricsGroup;
import org.apache.flink.shaded.guava30.com.google.common.cache.Cache;
import org.apache.flink.shaded.guava30.com.google.common.cache.CacheBuilder;
import org.apache.flink.shaded.guava30.com.google.common.collect.Lists;
import org.apache.flink.shaded.guava31.com.google.common.cache.Cache;
import org.apache.flink.shaded.guava31.com.google.common.cache.CacheBuilder;
import org.apache.flink.shaded.guava31.com.google.common.collect.Lists;
import org.apache.flink.table.catalog.Column;
import org.apache.flink.table.catalog.ResolvedSchema;
import org.apache.flink.table.catalog.UniqueConstraint;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@
import org.apache.amoro.scan.MixedFileScanTask;
import org.apache.amoro.table.KeyedTable;
import org.apache.flink.configuration.Configuration;
import org.apache.flink.shaded.guava30.com.google.common.collect.Maps;
import org.apache.flink.shaded.guava31.com.google.common.collect.Maps;
import org.apache.flink.table.data.GenericRowData;
import org.apache.flink.table.data.RowData;
import org.apache.flink.table.data.StringData;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@
import org.apache.amoro.table.TableIdentifier;
import org.apache.flink.api.common.JobStatus;
import org.apache.flink.runtime.testutils.CommonTestUtils;
import org.apache.flink.shaded.guava30.com.google.common.collect.Lists;
import org.apache.flink.shaded.guava31.com.google.common.collect.Lists;
import org.apache.flink.table.api.DataTypes;
import org.apache.flink.table.api.TableResult;
import org.apache.flink.table.api.TableSchema;
Expand Down
11 changes: 5 additions & 6 deletions amoro-mixed-format/amoro-mixed-format-flink/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -37,15 +37,14 @@
<module>amoro-mixed-format-flink-common</module>
<module>amoro-mixed-format-flink-common-format</module>
<module>amoro-mixed-format-flink-common-iceberg-bridge</module>
<module>v1.17/amoro-mixed-format-flink-1.17</module>
<module>v1.17/amoro-mixed-format-flink-runtime-1.17</module>
<module>v1.18/amoro-mixed-format-flink-1.18</module>
<module>v1.18/amoro-mixed-format-flink-runtime-1.18</module>
</modules>

<properties>
<!-- default flink version -->
<flink.version>1.17.2</flink.version>
<kafka.version>2.4.1</kafka.version>
<gson.version>2.9.0</gson.version>
<jackson.vesion>2.10.2</jackson.vesion>
<flink.version>1.18.1</flink.version>
<gson.version>2.11.0</gson.version>
<jackson.vesion>2.15.3</jackson.vesion>
</properties>
</project>
Original file line number Diff line number Diff line change
Expand Up @@ -27,17 +27,16 @@
<relativePath>../../pom.xml</relativePath>
</parent>

<artifactId>amoro-mixed-format-flink-1.17</artifactId>
<name>Amoro Project Mixed Format Flink 1.17</name>
<artifactId>amoro-mixed-format-flink-1.18</artifactId>
<name>Amoro Project Mixed Format Flink 1.18</name>
<url>https://amoro.apache.org</url>

<packaging>jar</packaging>

<properties>
<kafka.version>3.2.3</kafka.version>
<assertj.version>3.21.0</assertj.version>
<testcontainers.version>1.17.2</testcontainers.version>
<flink.version>1.17.2</flink.version>
<testcontainers.version>1.18.3</testcontainers.version>
<flink.version>1.18.1</flink.version>
</properties>

<dependencies>
Expand All @@ -49,7 +48,7 @@

<dependency>
<groupId>org.apache.iceberg</groupId>
<artifactId>iceberg-flink-1.17</artifactId>
<artifactId>iceberg-flink-1.18</artifactId>
<version>${iceberg.version}</version>
<exclusions>
<exclusion>
Expand All @@ -69,7 +68,7 @@

<dependency>
<groupId>org.apache.paimon</groupId>
<artifactId>paimon-flink-1.17</artifactId>
<artifactId>paimon-flink-1.18</artifactId>
<version>${paimon.version}</version>
</dependency>
</dependencies>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -27,37 +27,25 @@
<relativePath>../../pom.xml</relativePath>
</parent>

<artifactId>amoro-mixed-format-flink-runtime-1.17</artifactId>
<name>Amoro Project Mixed Format Flink 1.17 Runtime</name>
<artifactId>amoro-mixed-format-flink-runtime-1.18</artifactId>
<name>Amoro Project Mixed Format Flink 1.18 Runtime</name>
<url>https://amoro.apache.org</url>

<properties>
<flink.version>1.17.2</flink.version>
<flink.version>1.18.1</flink.version>
</properties>

<dependencies>
<dependency>
<groupId>org.apache.amoro</groupId>
<artifactId>amoro-mixed-format-flink-1.17</artifactId>
<artifactId>amoro-mixed-format-flink-1.18</artifactId>
<version>${project.parent.version}</version>
</dependency>

<dependency>
<groupId>org.apache.flink</groupId>
<artifactId>flink-connector-kafka</artifactId>
<version>${flink.version}</version>
<exclusions>
<exclusion>
<groupId>com.github.luben</groupId>
<artifactId>zstd-jni</artifactId>
</exclusion>
</exclusions>
</dependency>

<dependency>
<groupId>org.apache.kafka</groupId>
<artifactId>kafka-clients</artifactId>
<version>${kafka.version}</version>
<version>3.2.0-1.18</version>
<exclusions>
<exclusion>
<groupId>com.github.luben</groupId>
Expand Down

0 comments on commit 38ad59f

Please sign in to comment.