[ https://issues.apache.org/jira/browse/FLINK-6817?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Jark Wu closed FLINK-6817. -------------------------- Resolution: Fixed Fixed in 5f63bf98c3dc7c1fe28630300b68179b6700dcad for master Fixed in 88fbe2ac83f08074467c33b48e981b7ba9d1032f for 1.3 > 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 > Assignee: Jark Wu > Priority: Minor > Fix For: 1.4.0 > > > 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.4.14#64029)