presto-hive/src/main/java/io/prestosql/plugin/hive/HiveNodePartitioningProvider.java/HiveNodePartitioningProvider/getBucketFunction
class HiveNodePartitioningProvider:    @Override
    public BucketFunction getBucketFunction(
            ConnectorTransactionHandle transactionHandle,
            ConnectorSession session,
            ConnectorPartitioningHandle partitioningHandle,
            List<Type> partitionChannelTypes,
            int bucketCount)
    {
        HivePartitioningHandle handle = (HivePartitioningHandle) partitioningHandle;
        List<HiveType> hiveTypes = handle.getHiveTypes();
        return new HiveBucketFunction(handle.getBucketingVersion(), bucketCount, hiveTypes);
    }