Skip to content

Commit

Permalink
fix
Browse files Browse the repository at this point in the history
  • Loading branch information
JingsongLi committed Nov 11, 2024
1 parent 1f5b276 commit 2a6b4a9
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -95,7 +95,7 @@ public void testLocalMerge() {
sql(
"CREATE TABLE IF NOT EXISTS T1 ("
+ "a INT, b INT, c STRING, PRIMARY KEY (a, b) NOT ENFORCED)"
+ " PARTITIONED BY (b) WITH ('merge-engine'='first-row', 'local-merge-buffer-size' = '1m',"
+ " PARTITIONED BY (b) WITH ('merge-engine'='first-row', 'local-merge-buffer-size' = '5m',"
+ " 'file.format'='avro', 'changelog-producer' = 'lookup');");
batchSql("INSERT INTO T1 VALUES (1, 1, '1'), (1, 1, '2'), (2, 3, '3')");
List<Row> result = batchSql("SELECT * FROM T1");
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -351,7 +351,7 @@ public void testLocalMerge() {
+ "d INT,"
+ "PRIMARY KEY (k, d) NOT ENFORCED) PARTITIONED BY (d) "
+ " WITH ('merge-engine'='partial-update', "
+ "'local-merge-buffer-size'='1m'"
+ "'local-merge-buffer-size'='5m'"
+ ");");

sql("INSERT INTO T1 VALUES (1, CAST(NULL AS INT), 1), (2, 1, 1), (1, 2, 1)");
Expand Down Expand Up @@ -588,7 +588,7 @@ public void testIgnoreDelete(boolean localMerge) throws Exception {
+ " 'changelog-producer' = 'lookup'"
+ ")");
if (localMerge) {
sql("ALTER TABLE ignore_delete SET ('local-merge-buffer-size' = '256 kb')");
sql("ALTER TABLE ignore_delete SET ('local-merge-buffer-size' = '5m')");
}

sql("INSERT INTO ignore_delete VALUES (1, CAST (NULL AS STRING), 'apple')");
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -1172,7 +1172,7 @@ protected List<String> ddl() {
+ "PRIMARY KEY (k, d) NOT ENFORCED) PARTITIONED BY (d) "
+ " WITH ('merge-engine'='aggregation', "
+ "'fields.v.aggregate-function'='sum',"
+ "'local-merge-buffer-size'='1m'"
+ "'local-merge-buffer-size'='5m'"
+ ");");
}

Expand Down

0 comments on commit 2a6b4a9

Please sign in to comment.