presto-main/src/main/java/io/prestosql/operator/scalar/RepeatFunction.java/RepeatFunction/checkMaxSize
class RepeatFunction:    private static void checkMaxSize(long bytes, long count)
    {
        checkCondition(
                bytes <= (MAX_SIZE_IN_BYTES + count) / count,
                INVALID_FUNCTION_ARGUMENT,
                "result of repeat function must not take more than 1000000 bytes");
    }