### Description

A query like `any where true | head 2147483648` fails with `class java.lang.Long cannot be cast to class java.lang.Integer (java.lang.Long and java.lang.Integer are in module java.base of loader 'bootstrap')`.

While one like `any where true | head 2147483640 + 8` fails with `"type": "arithmetic_exception", "reason": "integer overflow"`.
x-pack/plugin/eql/src/test/java/org/elasticsearch/xpack/eql/planner/QueryTranslatorFailTests.java
No keyword/multi-field defined exact matches for [plain_text]; define one or use MATCH/QUERY instead""", msg);
    }
    public void testPropertyEquationFilterUnsupported() {
        QlIllegalArgumentException e = expectThrows(
            QlIllegalArgumentException.class,
            () -> plan("process where (serial_event_id<9 and serial_event_id >= 7) or (opcode == pid)")
        );
        String msg = e.getMessage();
        assertEquals("Line 1:74: Comparisons against fields are not (currently) supported; offender [pid] in [==]", msg);
    }
    public void testPropertyEquationInClauseFilterUnsupported() {
        VerificationException e = expectThrows(
            VerificationException.class,
            () -> plan("process where opcode in (1,3) and process_name in (parent_process_name, \"SYSTEM\")")
        );
        String msg = e.getMessage();
        assertEquals("""
            Found 1 problem
            line 1:35: Comparisons against fields are not (currently) supported; offender [parent_process_name] \
            in [process_name in (parent_process_name, "SYSTEM")]""", msg);
    }
    public void testSequenceWithBeforeBy() {
        String msg = errorParsing("sequence with maxspan=1s by key [a where true] [b where true]");
        assertEquals("1:2: Please specify sequence [by] before [with] not after", msg);
    }
    public void testSequenceWithNoTimeUnit() {
        String msg = errorParsing("sequence with maxspan=30 [a where true] [b where true]");
        assertEquals("1:24: No time unit specified, did you mean [s] as in [30s]?", msg);
    }
    public void testStartsWithFunctionWithInexact() {