statement
CREATE TABLE bigint_max_range(id bigint) USING parquet
statement
INSERT INTO bigint_max_range VALUES
(9223372036854775804),
(9223372036854775805),
(9223372036854775806)
query spark_answer_only
SELECT id,
LAST_VALUE(id) OVER (ORDER BY id
RANGE BETWEEN CURRENT ROW AND 4 FOLLOWING) AS lv
FROM bigint_max_range
Caused by: org.apache.comet.CometNativeException: Trying to access an element at index 18446744073709551615 from a PrimitiveArray of length 3
Describe the bug
Parent issue apache/datafusion#22137
Steps to reproduce
Expected behavior
No response
Additional context
No response