ClassCastException when dropping a STREAM with 2+ INSERT INTO statements #8129
Labels
bug
fix-it-week
P0
Denotes must-have for a given milestone
streaming-engine
Tickets owned by the ksqlDB Streaming Team
Milestone
Describe the bug
The following exception occurs when attempting to drop a
STREAM
which is associated with 2+INSERT INTO
statements:To Reproduce
ksqlDB 0.20.0
(Contrived example to illustrate the bug)
Expected behavior
User-friendly error message explaining why stream
S
cannot be dropped, such as:Actual behaviour
The following error is returned to the user in the CLI:
ksqlDB Server log:
Additional context
This code attempts to sort a set of
QueryId
, butQueryId
is not aComparable
: https://github.com/confluentinc/ksql/blob/0.20.0-ksqldb/ksqldb-engine/src/main/java/io/confluent/ksql/engine/EngineContext.java#L259. Note:sorted
is a no-op if there's only oneQueryId
in the set, so this bug only occurs if there are 2+INSERT INTO
statements read from/writing to the stream.The text was updated successfully, but these errors were encountered: