聚合函数Collect_list在表上不起作用

时间:2019-07-13 20:09:15

标签: ksql

文档说聚合函数collect_list同时适用于Table和流:https://docs.confluent.io/current/ksql/docs/developer-guide/syntax-reference.html#aggregate-functions

尽管我成功地在流上使用它。我没有在表上成功使用它。

我想知道是否有人能够做到这一点,或者他们是否是错误。

select addressid, collect_list(name) from users group by addressid;
    The aggregation function(s) (collect_list) cannot be applied to a table.
    Statement: select addressid, collect_list(name) from users group by addressid;
    Caused by: The aggregation function(s) (collect_list) cannot be applied to a
        table.

0 个答案:

没有答案