Uploaded image for project: 'Flink'
  1. Flink
  2. FLINK-22463

IllegalArgumentException is thrown in WindowAttachedWindowingStrategy when two phase is enabled for distinct agg

    XMLWordPrintableJSON

    Details

      Description

      Caused by: java.lang.IllegalArgumentException
      at org.apache.flink.util.Preconditions.checkArgument(Preconditions.java:122)
      at org.apache.flink.table.planner.plan.logical.WindowAttachedWindowingStrategy.<init>(WindowAttachedWindowingStrategy.java:51)
      at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)
      at sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:62)
      at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:45)
      at java.lang.reflect.Constructor.newInstance(Constructor.java:423)

      The reason is the windowStart may be -1 when two phase is enabled for distinct agg, see TwoStageOptimizedWindowAggregateRule.java#L143

        Attachments

          Issue Links

            Activity

              People

              • Assignee:
                godfreyhe godfrey he
                Reporter:
                godfreyhe godfrey he
              • Votes:
                0 Vote for this issue
                Watchers:
                1 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved: