Hi Nathan, Thanks for the reply.
## Aggregate functions I think `'fields.sum_field1.function'='sum'` is a safe one, I am more worried about using complex json, which will affect the sql parsing. ## Supported functions I think it is better to be consistent with Flink Table [1] and PostgreSQL [2]. - replace -> last_value - replace_if_not_null -> last_non_null_value - concatenate -> listagg - or -> bool_or - and -> bool_and ## Default function You can update the FLIP to clarify the default value of the corresponding agg function. ## Changelog support Can you also specify whether functions support changelog/retraction messages? [1] https://nightlies.apache.org/flink/flink-docs-release-1.15/docs/dev/table/functions/systemfunctions/#aggregate-functions [2] https://www.postgresql.org/docs/9.5/functions-aggregate.html Best, Jingsong On Tue, Aug 2, 2022 at 11:41 PM Hannan Kan <hannan...@foxmail.com> wrote: > > Thank you for reviewing FLIP-255. > > That indeed is a typo. I will correct it immediately. > > > Best, > Nathan > > > > > ------------------ 原始邮件 ------------------ > 发件人: > "dev" > > <liguo...@bytedance.com>; > 发送时间: 2022年8月2日(星期二) 中午11:09 > 收件人: "dev"<dev@flink.apache.org>; > > 主题: Re: [Phishing Risk] [External] [DISCUSS] FLIP-255 Introduce > pre-aggregated merge to Table Store > > > > Hi Nathan, > > > Seems a great proposal for table store aggregation. > In the example, I think the 'max_field1' should be 1 instead of 2 after the > max aggregation in the output result. > And there may be a minor typo in the WITH clause, 'max_field2' -> > 'max_field1'. > > > > Best, > Guojun > > > > From: "Hannan Kan"<hannan...@foxmail.com> > Date: Mon, Aug 1, 2022, 11:35 PM > Subject: [Phishing Risk] [External] [DISCUSS] FLIP-255 Introduce > pre-aggregated merge to Table Store > To: "dev"<dev@flink.apache.org> > Cc: "lzljs3620320"<lzljs3620...@apache.org> > > > > Hi everyone, I would like to open a discussion on&nbsp;FLIP-255 Introduce > pre-aggregated merge to table store&nbsp;[1]. Pre-aggregation mechanism > has been adopted by many big data systems (such as Apache Doris,&nbsp; > Apache Kylin , Druid etc.)&nbsp;to save storage and accelerate the > aggregate query. FLIP-255 proposes to introduce pre-aggregated merge into > Flink Table Store to acquire the same benefit.&nbsp; Supported aggregate > functions include&nbsp;sum, max/min, count, replace_if_not_null, > replace,&nbsp; concatenate, or/and. Looking forward to your feedback. > [1]&nbsp;https://cwiki.apache.org/confluence/display/FLINK/FLIP-255+Introduce+pre-aggregated+merge+to+table+store > Best, Nathan Kan (Hongnan Gan)