Use getLocationService() in AbstractTestHiveClient
Using locationService member variable directly doesn't work when a test
overwrites getLocationService().
@@ -2954,8 +2954,8 @@ public abstract class AbstractTestHiveClient
String tableOwner = session.getUser();
String schemaName = schemaTableName.getSchemaName();
String tableName = schemaTableName.getTableName();
- LocationHandle locationHandle = locationService.forNewTable(transaction.getMetastore(schemaName), session, schemaName, tableName);
- Path targetPath = locationService.getQueryWriteInfo(locationHandle).getTargetPath();
+ LocationHandle locationHandle = getLocationService().forNewTable(transaction.getMetastore(schemaName), session, schemaName, tableName);
+ Path targetPath = getLocationService().getQueryWriteInfo(locationHandle).getTargetPath();
//create table whose storage format is null
Table.Builder tableBuilder = Table.builder()
.setDatabaseName(schemaName)
