当前位置: 代码迷 >> 综合 >> toAppendStream doesn‘t support consuming update changes which is produced by node GroupAggregate
  详细解决方案

toAppendStream doesn‘t support consuming update changes which is produced by node GroupAggregate

热度:15   发布时间:2024-03-06 22:24:02.0

 

Exception in thread "main" org.apache.flink.table.api.TableException: toAppendStream doesn't support consuming update changes which is produced by node GroupAggregate(groupBy=[amount, product, user], select=[amount, product, user])

解决方案:

        tEnv.toAppendStream(result, Row.class).print();
        env.execute();

改成:

        tEnv.toRetractStream(result, Row.class).print();
        env.execute();

 

  相关解决方案