flink-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Jark Wu (JIRA)" <j...@apache.org>
Subject [jira] [Created] (FLINK-6817) Fix NPE when preceding is not set in OVER window
Date Fri, 02 Jun 2017 12:16:04 GMT
Jark Wu created FLINK-6817:
------------------------------

             Summary: Fix NPE when preceding is not set in OVER window
                 Key: FLINK-6817
                 URL: https://issues.apache.org/jira/browse/FLINK-6817
             Project: Flink
          Issue Type: Bug
          Components: Table API & SQL
            Reporter: Jark Wu
            Priority: Minor


When preceding is not set in over window , a NPE will be thrown:

{code}
val result = table
      .window(Over orderBy 'rowtime as 'w)
      .select('c, 'a.count over 'w)
{code}

{code}
java.lang.NullPointerException
	at org.apache.flink.table.api.OverWindowWithOrderBy.as(windows.scala:97)
{code}

Preceding must be set in OVER window, so should throw a more explicit exception not a NPE



--
This message was sent by Atlassian JIRA
(v6.3.15#6346)

Mime
View raw message