You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I'm not sure if this is actually wanted behaviour, also because KSQL CLI is not showing the NULL messages but the kafka-console-consumer does.
What I'm doing is filtering out all windows but the "oldest" one. The result is one message containing the aggregated values for the "oldest" window and a lot of NULL messages for the rest of the windows. I guess emitting these NULL messages is not really wanted.
This can be reproduced with the following steps:
In KSQL:
CREATE STREAM test (location VARCHAR, parts INT ) WITH (VALUE_FORMAT='json', KAFKA_TOPIC='test');
CREATE STREAM test_keyed AS SELECT * FROM test PARTITION BY LOCATION;
CREATE TABLE test_windowed AS SELECT
location,
SUM(parts) AS total
FROM
test_keyed
WINDOW HOPPING (SIZE 10 MINUTES, ADVANCE BY 2 SECONDS)
GROUP BY location
HAVING
MAX(rowtime) < WINDOWEND()
AND WINDOWEND() < MAX(rowtime)+2*1000
In the interest of keeping our issue backlog tidy I'm going to close this issue. Please feel free to reopen with more details if the answer does not fully answer your question of if you have a follow up question. Thanks for using KSQL!
I'm not sure if this is actually wanted behaviour, also because KSQL CLI is not showing the NULL messages but the kafka-console-consumer does.
What I'm doing is filtering out all
windows
but the "oldest" one. The result is one message containing the aggregated values for the "oldest" window and a lot ofNULL
messages for the rest of the windows. I guess emitting theseNULL
messages is not really wanted.This can be reproduced with the following steps:
In KSQL:
Emits one message and a lot of
NULL
s:Send test message:
with
{ "location" : "site1" , "parts": 10 }
The text was updated successfully, but these errors were encountered: