Improve testIllegalStorageFormatDuringTableScan
Provide both schema name and table name when listing columns. It
is not necessary to list all tables to achieve the goal of the test.
@@ -2979,7 +2979,7 @@ public abstract class AbstractTestHiveClient
// to make sure it can still be retrieved instead of throwing exception.
try (Transaction transaction = newTransaction()) {
ConnectorMetadata metadata = transaction.getMetadata();
- Map<SchemaTableName, List<ColumnMetadata>> allColumns = metadata.listTableColumns(newSession(), new SchemaTablePrefix(schemaTableName.getSchemaName()));
+ Map<SchemaTableName, List<ColumnMetadata>> allColumns = metadata.listTableColumns(newSession(), new SchemaTablePrefix(schemaTableName.getSchemaName(), schemaTableName.getTableName()));
assertTrue(allColumns.containsKey(schemaTableName));
}
finally {
