luoyuxia created FLINK-28212: -------------------------------- Summary: IndexOutOfBoundsException is thrown when project contains window which dosen't refer all fields of input when using Hive dialect Key: FLINK-28212 URL: https://issues.apache.org/jira/browse/FLINK-28212 Project: Flink Issue Type: Bug Components: Connectors / Hive Reporter: luoyuxia Fix For: 1.16.0
Can be reproduced by following sql {code:java} CREATE TABLE alltypesorc( ctinyint TINYINT, csmallint SMALLINT, cint INT, cbigint BIGINT, cfloat FLOAT, cdouble DOUBLE, cstring1 STRING, cstring2 STRING, ctimestamp1 TIMESTAMP, ctimestamp2 TIMESTAMP, cboolean1 BOOLEAN, cboolean2 BOOLEAN); select a.ctinyint, a.cint, count(a.cdouble) over(partition by a.ctinyint order by a.cint desc rows between 1 preceding and 1 following) from alltypesorc {code} Then it will throw Caused by: java.lang.IndexOutOfBoundsException: index (7) must be less than size (1) -- This message was sent by Atlassian Jira (v8.20.7#820007)