Skip to content

Commit

Permalink
update
Browse files Browse the repository at this point in the history
  • Loading branch information
JNSimba committed Nov 26, 2024
1 parent 9c5e534 commit c37dd18
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -412,13 +412,16 @@ public void testMySQL2DorisCreateTableOnly() throws Exception {
Assert.assertTrue(createTblSQL.contains("UNIQUE KEY(`id`)"));
Assert.assertTrue(createTblSQL.contains("BUCKETS AUTO"));

/*
The auto partition behavior of doris 2.1.0 to 2.1.4 has changed, temporarily skipped
createTblSQL = getCreateTableSQL(DATABASE, "create_tbl_part_uniq");
Assert.assertTrue(createTblSQL.contains("UNIQUE KEY(`id`, `create_dtime`)"));
Assert.assertTrue(createTblSQL.contains("BUCKETS AUTO"));
createTblSQL = getCreateTableSQL(DATABASE, "create_tbl_part_dup");
Assert.assertTrue(createTblSQL.contains("DUPLICATE KEY(`id`, `create_dtime`, `name`)"));
Assert.assertTrue(createTblSQL.contains("BUCKETS AUTO"));
*/
}

private String getCreateTableSQL(String database, String table) throws Exception {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,5 +2,4 @@ mysql-sync-database
--including-tables "create_tbl_.*"
--create-table-only
--table-conf table-buckets=create_tbl_uniq:10,create_tbl_from_uniqindex.*:30
--table-conf table-partitions=create_tbl_part_uniq:create_dtime:day,create_tbl_part_dup:create_dtime:month
--table-conf replication_num=1

0 comments on commit c37dd18

Please sign in to comment.