AWS Kinesis Analytics如何做一个简单的聚合查询?

时间:2019-02-12 11:06:03

标签: amazon-web-services amazon-kinesis amazon-kinesis-kpl

当前查询

CREATE OR REPLACE STREAM "DESTINATION_SQL_STREAM" (failedCount INTEGER);
CREATE OR REPLACE PUMP "STREAM_PUMP" AS INSERT INTO "DESTINATION_SQL_STREAM"
SELECT STREAM COUNT("fxStatus") as failedCount
FROM "SOURCE_SQL_STREAM_001"
GROUP BY "fxStatus" WHERE "fxStatus" SIMILAR TO 'FAILED' ;

错误

无法聚合无限流:未指定GROUP BY子句或不包含任何单调表达式。

我在做什么错了?

0 个答案:

没有答案