簡體   English   中英

Ksql 找不到任何名為“COUNT_DISTINCT”的函數

[英]Ksql Can't find any functions with the name 'COUNT_DISTINCT'

我正在使用 ksql cli 運行

docker run --net=host --interactive --tty confluentinc/cp-ksql-cli:latest http://localhost:8088

我創建了一個 stream

CREATE STREAM RAW (`nodeId` INT,`data` STRING) WITH (kafka_topic='raw-data', value_format='JSON',partitions=3);

當我運行 count_distinct 查詢時

SELECT COUNT_DISTINCT(`nodeId`) FROM RAW EMIT CHANGES;

它說

Can't find any functions with the name 'COUNT_DISTINCT'

文檔指定了這個 function

https://docs.ksqldb.io/en/latest/developer-guide/ksqldb-reference/aggregate-functions/

按照@OneCricketeer 的指導,使用最新的 docker 圖像解決,如https://ksqldb.io/quickstart.html中所述

暫無
暫無

聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.

 
粵ICP備18138465號  © 2020-2024 STACKOOM.COM