Skip to content

Commit

Permalink
resolve
Browse files Browse the repository at this point in the history
Signed-off-by: Yixin Luo <[email protected]>
  • Loading branch information
luohaha committed Nov 6, 2024
1 parent a818aaa commit 88b7b08
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -446,14 +446,14 @@ public void testAddReserveColumn() throws Exception {
Database db = GlobalStateMgr.getCurrentState().getLocalMetastore().getDb("test");
OlapTable tbl = (OlapTable) GlobalStateMgr.getCurrentState().getLocalMetastore().getTable(db.getFullName(), "sc_pk");
Locker locker = new Locker();
locker.lockTablesWithIntensiveDbLock(db.getId(), Lists.newArrayList(tbl.getId()), LockType.READ);
locker.lockTablesWithIntensiveDbLock(db, Lists.newArrayList(tbl.getId()), LockType.READ);
try {
Assertions.assertNotNull(tbl);
System.out.println(tbl.getName());
Assertions.assertEquals("StarRocks", tbl.getEngine());
Assertions.assertEquals(6, tbl.getBaseSchema().size());
} finally {
locker.unLockTablesWithIntensiveDbLock(db.getId(), Lists.newArrayList(tbl.getId()), LockType.READ);
locker.unLockTablesWithIntensiveDbLock(db, Lists.newArrayList(tbl.getId()), LockType.READ);
}
Config.allow_system_reserved_names = true;

Expand Down

0 comments on commit 88b7b08

Please sign in to comment.