Skip to content

Ksql example to count messages is irritating #1086

Open
@simon-an

Description

@simon-an

The example uses limit 1 which will give a random massage count, since the query is NOT processing all message. Without limit 1, after some second one have the correct count.

SELECT 'X' AS X, COUNT(*) AS MSG_CT FROM TOPIC GROUP BY 'X' EMIT CHANGES LIMIT 1;

image

Can anyone explain, why the behavior is diffrent to whats describe in the example?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions