Skip to content

Ksql example to count messages is irritating #1086

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
simon-an opened this issue Feb 18, 2022 · 0 comments
Open

Ksql example to count messages is irritating #1086

simon-an opened this issue Feb 18, 2022 · 0 comments

Comments

@simon-an
Copy link

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?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant