presto-hive/src/main/java/io/prestosql/plugin/hive/HiveSessionProperties.java/HiveSessionProperties/getPartitionStatisticsSampleSize
class HiveSessionProperties:    public static int getPartitionStatisticsSampleSize(ConnectorSession session)
    {
        int size = session.getProperty(PARTITION_STATISTICS_SAMPLE_SIZE, Integer.class);
        if (size < 1) {
            throw new PrestoException(INVALID_SESSION_PROPERTY, format("%s must be greater than 0: %s", PARTITION_STATISTICS_SAMPLE_SIZE, size));
        }
        return size;
    }