Skip to content
Merged
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 @@ -54,7 +54,6 @@
import io.trino.plugin.hive.metastore.UserTableKey;
import io.trino.spi.TrinoException;
import io.trino.spi.connector.SchemaTableName;
import io.trino.spi.connector.TableNotFoundException;
import io.trino.spi.predicate.TupleDomain;
import io.trino.spi.security.RoleGrant;
import io.trino.spi.type.Type;
Expand Down Expand Up @@ -591,12 +590,6 @@ private List<String> loadAllDatabases()
return delegate.getAllDatabases();
}

private Table getExistingTable(String databaseName, String tableName)
{
return getTable(databaseName, tableName)
.orElseThrow(() -> new TableNotFoundException(new SchemaTableName(databaseName, tableName)));
}

@Override
public Optional<Table> getTable(String databaseName, String tableName)
{
Expand Down Expand Up @@ -636,12 +629,6 @@ public PartitionStatistics getTableStatistics(Table table)
CachingHiveMetastore::mergePartitionColumnStatistics);
}

private PartitionStatistics loadTableColumnStatistics(HiveTableName tableName)
{
Table table = getExistingTable(tableName.getDatabaseName(), tableName.getTableName());
return delegate.getTableStatistics(table);
}

/**
* The method will cache and return columns specified in the {@link Table#getDataColumns()}
* but may return more if other columns are already cached for a given partition.
Expand Down