presto-raptor-legacy/src/main/java/io/prestosql/plugin/raptor/legacy/RaptorMetadata.java/RaptorMetadata/getTableProperties
class RaptorMetadata:    @Override
    public ConnectorTableProperties getTableProperties(ConnectorSession session, ConnectorTableHandle handle)
    {
        RaptorTableHandle table = (RaptorTableHandle) handle;

        if (!table.getPartitioningHandle().isPresent()) {
            return new ConnectorTableProperties();
        }

        List<RaptorColumnHandle> bucketColumnHandles = getBucketColumnHandles(table.getTableId());

        RaptorPartitioningHandle partitioning = table.getPartitioningHandle().get();

        boolean oneSplitPerBucket = table.getBucketCount().getAsInt() >= getOneSplitPerBucketThreshold(session);

        return new ConnectorTableProperties(
                TupleDomain.all(),
                Optional.of(new ConnectorTablePartitioning(
                        partitioning,
                        ImmutableList.copyOf(bucketColumnHandles))),
                oneSplitPerBucket ? Optional.of(ImmutableSet.copyOf(bucketColumnHandles)) : Optional.empty(),
                Optional.empty(),
                ImmutableList.of());
    }