presto-main/src/main/java/io/prestosql/operator/scalar/SequenceFunction.java/SequenceFunction/checkMaxEntry
class SequenceFunction:    private static void checkMaxEntry(int length)
    {
        checkCondition(
                length <= MAX_RESULT_ENTRIES,
                INVALID_FUNCTION_ARGUMENT,
                "result of sequence function must not have more than 10000 entries");
    }