Skip to content

Commit

Permalink
[cdc] Debezium format completes the test case (#2416)
Browse files Browse the repository at this point in the history
  • Loading branch information
MonsterChenzhuo authored Nov 30, 2023
1 parent 85ef2d8 commit 37f5351
Showing 1 changed file with 6 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -160,7 +160,8 @@ public void testComputedColumn() throws Exception {
kafkaConfig.put(TOPIC.key(), topic);
KafkaSyncTableAction action =
syncTableActionBuilder(kafkaConfig)
.withPrimaryKeys("id")
.withPartitionKeys("_year")
.withPrimaryKeys("id", "_year")
.withComputedColumnArgs("_year=year(date)")
.withTableConfig(getBasicTableConfig())
.build();
Expand All @@ -169,13 +170,15 @@ public void testComputedColumn() throws Exception {
RowType rowType =
RowType.of(
new DataType[] {
DataTypes.STRING().notNull(), DataTypes.STRING(), DataTypes.INT()
DataTypes.STRING().notNull(),
DataTypes.STRING(),
DataTypes.INT().notNull()
},
new String[] {"id", "date", "_year"});
waitForResult(
Collections.singletonList("+I[101, 2023-03-23, 2023]"),
getFileStoreTable(tableName),
rowType,
Collections.singletonList("id"));
Arrays.asList("id", "_year"));
}
}

0 comments on commit 37f5351

Please sign in to comment.