presto-spi/src/main/java/io/prestosql/spi/connector/ConnectorMetadata.java/ConnectorMetadata/getTableProperties
class ConnectorMetadata:    default ConnectorTableProperties getTableProperties(ConnectorSession session, ConnectorTableHandle table)
    {
        if (!usesLegacyTableLayouts()) {
            throw new IllegalStateException("getTableProperties() must be implemented if usesLegacyTableLayouts is false");
        }

        List<ConnectorTableLayoutResult> layouts = getTableLayouts(session, table, Constraint.alwaysTrue(), Optional.empty());

        if (layouts.size() != 1) {
            throw new PrestoException(NOT_SUPPORTED, format("Connector must return a single layout for table %s, but got %s", table, layouts.size()));
        }

        return new ConnectorTableProperties(layouts.get(0).getTableLayout());
    }