presto-hive/src/main/java/io/prestosql/plugin/hive/HiveMetadata.java/HiveMetadata/listTables
class HiveMetadata:    private List<SchemaTableName> listTables(ConnectorSession session, SchemaTablePrefix prefix)
    {
        if (!prefix.getTable().isPresent()) {
            return listTables(session, prefix.getSchema());
        }
        SchemaTableName tableName = prefix.toSchemaTableName();
        try {
            if (!metastore.getTable(new HiveIdentity(session), tableName.getSchemaName(), tableName.getTableName()).isPresent()) {
                return ImmutableList.of();
            }
        }
        catch (HiveViewNotSupportedException e) {
            // exists, would be returned by listTables from schema
        }
        return ImmutableList.of(tableName);
    }