mirror of
https://github.com/scylladb/scylladb.git
synced 2026-04-23 10:00:35 +00:00
We used to allow nulls in lists of IN values, i.e. a query like this would be valid: SELECT * FROM tab WHERE pk IN (1, null, 2); This is an old feature that isn't really used and is already forbidden in Cassandra. Additionally the current implementation doesn't allow for nulls inside the list if it's sent as a bound value. So something like: SELECT * FROM tab WHERE pk IN ?; would throw an error if ? was (1, null, 2). This is inconsistent. Allowing it made writing code cumbersome because this was the only case where having a null inside of a collection was allowed. Because of it there needed to be separate code paths to handle regular lists and lists of NULL values. Forbidding it makes the code nicer and consistent at the cost of a feature that isn't really important. Signed-off-by: Jan Ciolek <jan.ciolek@scylladb.com>