You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@flink.apache.org by "luoyuxia (Jira)" <ji...@apache.org> on 2022/06/23 04:16:00 UTC

[jira] [Created] (FLINK-28212) IndexOutOfBoundsException is thrown when project contains window which dosen't refer all fields of input when using Hive dialect

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)