From 89d78f148d99993526792e34d159df6970e186c6 Mon Sep 17 00:00:00 2001 From: Kanthi Subramanian Date: Thu, 21 Nov 2024 17:38:22 -0500 Subject: [PATCH] Added DDL test for CREATE TABLE like --- .../embedded/ddl/parser/MySqlDDLParserListenerImplTest.java | 1 + 1 file changed, 1 insertion(+) diff --git a/sink-connector-lightweight/src/test/java/com/altinity/clickhouse/debezium/embedded/ddl/parser/MySqlDDLParserListenerImplTest.java b/sink-connector-lightweight/src/test/java/com/altinity/clickhouse/debezium/embedded/ddl/parser/MySqlDDLParserListenerImplTest.java index 219ea0850..74a8b2e22 100644 --- a/sink-connector-lightweight/src/test/java/com/altinity/clickhouse/debezium/embedded/ddl/parser/MySqlDDLParserListenerImplTest.java +++ b/sink-connector-lightweight/src/test/java/com/altinity/clickhouse/debezium/embedded/ddl/parser/MySqlDDLParserListenerImplTest.java @@ -249,6 +249,7 @@ public void testCreateTableLike() { StringBuffer clickHouseQuery = new StringBuffer(); String createDB = "CREATE TABLE new_tbl LIKE orig_tbl;"; mySQLDDLParserService.parseSql(createDB, "Persons", clickHouseQuery); + Assert.assertTrue("CREATE TABLE new_tbl LIKE orig_tbl;", clickHouseQuery.toString()); log.info("Create table " + clickHouseQuery); } @Test