Open rmoff opened 6 years ago
Is this not a case of user error? When running a CT/CS with KEY='ID'
you're telling KSQL that the key of the records is the same as the ID
field. So when you do a PARTITION BY ID
KSQL is correctly saying 'I don't need to repartition as its already partitioned by ID'...
I think we can close this ticket, because the WITH (key=...)
clause was removed during the "structured key" work AFAIK?
This behaves as expected. The derived stream is keyed on the
PARTITION BY
column:This does not behave as expected - note the (mistaken) use of
KEY
in theWITH
clause:Note that the messages have not been rekeyed.
If a different column other than that specified in the
CREATE STREAM
KEY
clause is used for rekeying, it works fine: