Skip to content

Commit

Permalink
1
Browse files Browse the repository at this point in the history
  • Loading branch information
Zouxxyy committed Dec 17, 2024
1 parent ba7faee commit b2f9759
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -1002,12 +1002,12 @@ public void testRenameTable() throws Exception {
// the source table do not exist.
assertThatThrownBy(() -> tEnv.executeSql("ALTER TABLE t3 RENAME TO t4"))
.hasMessage(
"Table `my_hive`.`test_db`.`t3` doesn't exist or is a temporary table.");
"Table `case_insensitive_hive`.`test_db`.`t3` doesn't exist or is a temporary table.");

// the target table has existed.
assertThatThrownBy(() -> tEnv.executeSql("ALTER TABLE t1 RENAME TO t2"))
.hasMessage(
"Could not execute ALTER TABLE my_hive.test_db.t1 RENAME TO my_hive.test_db.t2");
"Could not execute ALTER TABLE case_insensitive_hive.test_db.t1 RENAME TO my_hive.test_db.t2");

// the target table name has upper case.
assertThatThrownBy(() -> tEnv.executeSql("ALTER TABLE t1 RENAME TO T1"))
Expand Down

0 comments on commit b2f9759

Please sign in to comment.