Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -91,6 +91,9 @@ public void testRefreshDatabase() throws Exception {
}
long l3 = db1.getLastUpdateTime();
Assertions.assertTrue(l3 == l2);
// when use_meta_cache is true, the table will be recreated after refresh.
// so we need to get table again
table = db1.getTable("tbl11").get();
Assertions.assertFalse(table.isObjectCreated());
test1.getDbNullable("db1").getTables();
Assertions.assertFalse(table.isObjectCreated());
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -145,9 +145,12 @@ public void testRefreshCatalogLastUpdateTime() throws Exception {
// not triggered init method
long l3 = test2.getLastUpdateTime();
Assertions.assertTrue(l3 == l2);
// Assertions.assertFalse(table.isObjectCreated());
// when use_meta_cache is true, the table will be recreated after refresh.
// so we need to get table again
table = (TestExternalTable) test2.getDbNullable("db1").getTable("tbl11").get();
Assertions.assertFalse(table.isObjectCreated());
test2.getDbNullable("db1").getTables();
// Assertions.assertFalse(table.isObjectCreated());
Assertions.assertFalse(table.isObjectCreated());
try {
DdlExecutor.execute(Env.getCurrentEnv(), refreshCatalogStmt);
} catch (Exception e) {
Expand Down