presto-iceberg/src/main/java/io/prestosql/plugin/iceberg/IcebergMetadata.java/IcebergMetadata/getTableHandle
class IcebergMetadata:    @Override
    public IcebergTableHandle getTableHandle(ConnectorSession session, SchemaTableName tableName)
    {
        IcebergTableHandle handle = IcebergTableHandle.from(tableName);
        Optional<Table> table = metastore.getTable(new HiveIdentity(session), handle.getSchemaName(), handle.getTableName());
        if (!table.isPresent()) {
            return null;
        }
        if (handle.getTableType() != DATA) {
            throw new PrestoException(NOT_SUPPORTED, "Table type not yet supported: " + handle.getSchemaTableNameWithType());
        }
        if (!isIcebergTable(table.get())) {
            throw new UnknownTableTypeException(tableName);
        }
        return handle;
    }