presto-raptor-legacy/src/main/java/io/prestosql/plugin/raptor/legacy/RaptorBucketFunction.java/RaptorBucketFunction/validateBucketType
class RaptorBucketFunction:    public static void validateBucketType(Type type)
    {
        getHashFunction(type);
    }