Skip to content

Commit c99341e

Browse files
committed
[FLINK-36524][pipeline-connector][paimon] 1) bump version to 0.9.0. 2) Forcibly add cache-enabled = false in catalog option to avoid using previous table schema.
1 parent eaa05e4 commit c99341e

File tree

3 files changed

+3
-7
lines changed

3 files changed

+3
-7
lines changed

flink-cdc-connect/flink-cdc-pipeline-connectors/flink-cdc-pipeline-connector-paimon/src/main/java/org/apache/flink/cdc/connectors/paimon/sink/v2/PaimonCommitter.java

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -27,8 +27,6 @@
2727
import org.slf4j.Logger;
2828
import org.slf4j.LoggerFactory;
2929

30-
import javax.annotation.Nullable;
31-
3230
import java.io.IOException;
3331
import java.util.Collection;
3432
import java.util.Collections;

flink-cdc-connect/flink-cdc-pipeline-connectors/flink-cdc-pipeline-connector-paimon/src/test/java/org/apache/flink/cdc/connectors/paimon/sink/PaimonMetadataApplierTest.java

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -271,10 +271,10 @@ public void testCreateTableWithOptions(String metastore)
271271
Arrays.asList(
272272
new DataField(0, "col1", DataTypes.STRING().notNull()),
273273
new DataField(1, "col2", DataTypes.STRING()),
274-
new DataField(2, "col3", DataTypes.STRING()),
275-
new DataField(3, "col4", DataTypes.STRING())));
274+
new DataField(2, "col3", DataTypes.STRING().notNull()),
275+
new DataField(3, "col4", DataTypes.STRING().notNull())));
276276
Assertions.assertEquals(tableSchema, table.rowType());
277-
Assertions.assertEquals(Collections.singletonList("col1"), table.primaryKeys());
277+
Assertions.assertEquals(Arrays.asList("col1", "col3", "col4"), table.primaryKeys());
278278
Assertions.assertEquals(Arrays.asList("col3", "col4"), table.partitionKeys());
279279
Assertions.assertEquals("-1", table.options().get("bucket"));
280280
}

flink-cdc-connect/flink-cdc-pipeline-connectors/flink-cdc-pipeline-connector-paimon/src/test/java/org/apache/flink/cdc/connectors/paimon/sink/v2/PaimonSinkITCase.java

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -128,8 +128,6 @@ private void initialize(String metastore)
128128
+ "'hadoop-conf-dir'='%s', "
129129
+ "'hive-conf-dir'='%s', "
130130
+ "'cache-enabled'='false'"
131-
+ "'hive-conf-dir'='%s', "
132-
+ "'cache-enabled'='false' "
133131
+ ")",
134132
warehouse, HADOOP_CONF_DIR, HIVE_CONF_DIR));
135133
} else {

0 commit comments

Comments
 (0)