I've created a table
in ksql
from kafka topic
. Pushed a set of data to topic and table's populated. Posted a query and got the response too. For the 2nd time I've pushed the same data into the topic
and the table
gets loaded again. Now, when I query, response is 2 rows instead of 1 with 2 different ROWTIME
timestamps.
I believe ksql table
should overwrite the value if the same key
comes in and retain the latest value. But that's not happening. Is my understanding correct?
What should be done for the table
to keep the latest value and discard previous value on same key is inserted/updated?
Thanks