@@ -3425,19 +3425,6 @@ public void renameTable_ForMysql_ShouldWorkProperly() throws SQLException, Execu
34253425 + "`.`metadata` WHERE `full_table_name`=? ORDER BY `ordinal_position` ASC" ,
34263426 "ALTER TABLE `ns`.`table` RENAME TO `ns`.`table_new`" ,
34273427 "DELETE FROM `" + METADATA_SCHEMA + "`.`metadata` WHERE `full_table_name` = 'ns.table'" ,
3428- "SELECT DISTINCT `full_table_name` FROM `" + METADATA_SCHEMA + "`.`metadata`" ,
3429- "CREATE SCHEMA IF NOT EXISTS `" + METADATA_SCHEMA + "`" ,
3430- "CREATE TABLE IF NOT EXISTS `"
3431- + METADATA_SCHEMA
3432- + "`.`metadata`("
3433- + "`full_table_name` VARCHAR(128),"
3434- + "`column_name` VARCHAR(128),"
3435- + "`data_type` VARCHAR(20) NOT NULL,"
3436- + "`key_type` VARCHAR(20),"
3437- + "`clustering_order` VARCHAR(10),"
3438- + "`indexed` BOOLEAN NOT NULL,"
3439- + "`ordinal_position` INTEGER NOT NULL,"
3440- + "PRIMARY KEY (`full_table_name`, `column_name`))" ,
34413428 "INSERT INTO `"
34423429 + METADATA_SCHEMA
34433430 + "`.`metadata` VALUES ('ns.table_new','c1','TEXT','PARTITION',NULL,false,1)" ,
@@ -3457,12 +3444,6 @@ public void renameTable_ForOracle_ShouldWorkProperly() throws SQLException, Exec
34573444 "DELETE FROM \" "
34583445 + METADATA_SCHEMA
34593446 + "\" .\" metadata\" WHERE \" full_table_name\" = 'ns.table'" ,
3460- "SELECT DISTINCT \" full_table_name\" FROM \" " + METADATA_SCHEMA + "\" .\" metadata\" " ,
3461- "CREATE USER \" " + METADATA_SCHEMA + "\" IDENTIFIED BY \" Oracle1234!@#$\" " ,
3462- "ALTER USER \" " + METADATA_SCHEMA + "\" quota unlimited on USERS" ,
3463- "CREATE TABLE \" "
3464- + METADATA_SCHEMA
3465- + "\" .\" metadata\" (\" full_table_name\" VARCHAR2(128),\" column_name\" VARCHAR2(128),\" data_type\" VARCHAR2(20) NOT NULL,\" key_type\" VARCHAR2(20),\" clustering_order\" VARCHAR2(10),\" indexed\" NUMBER(1) NOT NULL,\" ordinal_position\" INTEGER NOT NULL,PRIMARY KEY (\" full_table_name\" , \" column_name\" ))" ,
34663447 "INSERT INTO \" "
34673448 + METADATA_SCHEMA
34683449 + "\" .\" metadata\" VALUES ('ns.table_new','c1','TEXT','PARTITION',NULL,0,1)" ,
@@ -3483,19 +3464,6 @@ public void renameTable_ForPostgresql_ShouldWorkProperly()
34833464 "DELETE FROM \" "
34843465 + METADATA_SCHEMA
34853466 + "\" .\" metadata\" WHERE \" full_table_name\" = 'ns.table'" ,
3486- "SELECT DISTINCT \" full_table_name\" FROM \" " + METADATA_SCHEMA + "\" .\" metadata\" " ,
3487- "CREATE SCHEMA IF NOT EXISTS \" " + METADATA_SCHEMA + "\" " ,
3488- "CREATE TABLE IF NOT EXISTS \" "
3489- + METADATA_SCHEMA
3490- + "\" .\" metadata\" ("
3491- + "\" full_table_name\" VARCHAR(128),"
3492- + "\" column_name\" VARCHAR(128),"
3493- + "\" data_type\" VARCHAR(20) NOT NULL,"
3494- + "\" key_type\" VARCHAR(20),"
3495- + "\" clustering_order\" VARCHAR(10),"
3496- + "\" indexed\" BOOLEAN NOT NULL,"
3497- + "\" ordinal_position\" INTEGER NOT NULL,"
3498- + "PRIMARY KEY (\" full_table_name\" , \" column_name\" ))" ,
34993467 "INSERT INTO \" "
35003468 + METADATA_SCHEMA
35013469 + "\" .\" metadata\" VALUES ('ns.table_new','c1','TEXT','PARTITION',NULL,false,1)" ,
@@ -3514,19 +3482,6 @@ public void renameTable_ForSqlServer_ShouldWorkProperly()
35143482 + "].[metadata] WHERE [full_table_name]=? ORDER BY [ordinal_position] ASC" ,
35153483 "EXEC sp_rename '[ns].[table]', 'table_new'" ,
35163484 "DELETE FROM [" + METADATA_SCHEMA + "].[metadata] WHERE [full_table_name] = 'ns.table'" ,
3517- "SELECT DISTINCT [full_table_name] FROM [" + METADATA_SCHEMA + "].[metadata]" ,
3518- "CREATE SCHEMA [" + METADATA_SCHEMA + "]" ,
3519- "CREATE TABLE ["
3520- + METADATA_SCHEMA
3521- + "].[metadata]("
3522- + "[full_table_name] VARCHAR(128),"
3523- + "[column_name] VARCHAR(128),"
3524- + "[data_type] VARCHAR(20) NOT NULL,"
3525- + "[key_type] VARCHAR(20),"
3526- + "[clustering_order] VARCHAR(10),"
3527- + "[indexed] BIT NOT NULL,"
3528- + "[ordinal_position] INTEGER NOT NULL,"
3529- + "PRIMARY KEY ([full_table_name], [column_name]))" ,
35303485 "INSERT INTO ["
35313486 + METADATA_SCHEMA
35323487 + "].[metadata] VALUES ('ns.table_new','c1','TEXT','PARTITION',NULL,0,1)" ,
@@ -3544,18 +3499,6 @@ public void renameTable_ForSqlite_ShouldWorkProperly() throws SQLException, Exec
35443499 + "$metadata\" WHERE \" full_table_name\" =? ORDER BY \" ordinal_position\" ASC" ,
35453500 "ALTER TABLE \" ns$table\" RENAME TO \" ns$table_new\" " ,
35463501 "DELETE FROM \" " + METADATA_SCHEMA + "$metadata\" WHERE \" full_table_name\" = 'ns.table'" ,
3547- "SELECT DISTINCT \" full_table_name\" FROM \" " + METADATA_SCHEMA + "$metadata\" " ,
3548- "CREATE TABLE IF NOT EXISTS \" "
3549- + METADATA_SCHEMA
3550- + "$metadata\" ("
3551- + "\" full_table_name\" TEXT,"
3552- + "\" column_name\" TEXT,"
3553- + "\" data_type\" TEXT NOT NULL,"
3554- + "\" key_type\" TEXT,"
3555- + "\" clustering_order\" TEXT,"
3556- + "\" indexed\" BOOLEAN NOT NULL,"
3557- + "\" ordinal_position\" INTEGER NOT NULL,"
3558- + "PRIMARY KEY (\" full_table_name\" , \" column_name\" ))" ,
35593502 "INSERT INTO \" "
35603503 + METADATA_SCHEMA
35613504 + "$metadata\" VALUES ('ns.table_new','c1','TEXT','PARTITION',NULL,FALSE,1)" ,
@@ -3575,19 +3518,6 @@ public void renameTable_ForDb2_ShouldWorkProperly() throws SQLException, Executi
35753518 "DELETE FROM \" "
35763519 + METADATA_SCHEMA
35773520 + "\" .\" metadata\" WHERE \" full_table_name\" = 'ns.table'" ,
3578- "SELECT DISTINCT \" full_table_name\" FROM \" " + METADATA_SCHEMA + "\" .\" metadata\" " ,
3579- "CREATE SCHEMA \" " + METADATA_SCHEMA + "\" " ,
3580- "CREATE TABLE IF NOT EXISTS \" "
3581- + METADATA_SCHEMA
3582- + "\" .\" metadata\" ("
3583- + "\" full_table_name\" VARCHAR(128) NOT NULL,"
3584- + "\" column_name\" VARCHAR(128) NOT NULL,"
3585- + "\" data_type\" VARCHAR(20) NOT NULL,"
3586- + "\" key_type\" VARCHAR(20),"
3587- + "\" clustering_order\" VARCHAR(10),"
3588- + "\" indexed\" BOOLEAN NOT NULL,"
3589- + "\" ordinal_position\" INTEGER NOT NULL,"
3590- + "PRIMARY KEY (\" full_table_name\" , \" column_name\" ))" ,
35913521 "INSERT INTO \" "
35923522 + METADATA_SCHEMA
35933523 + "\" .\" metadata\" VALUES ('ns.table_new','c1','TEXT','PARTITION',NULL,false,1)" ,
0 commit comments