Closed Zk2u closed 2 months ago
https://opensource.docs.scylladb.com/stable/cql/types.html#sets
ScyllaDB does not distinguish an empty collections from a missing value so using Option<Set<T>>
is recommended.
That's so dumb, the main driver should use an empty collection for this case lol. Thank you, saved the day once again!
I agree, it's bit unexpected behavior. ~Maybe we could have some kind of compile time checks if collection is not Option
and raise an error.~
When a column with a
Set
type is inserted and defaulted (to become an empty hash set), it is stored in Scylla asnull
. When reading this, the crate fails to convert thenull
into an empty hashset.Apologies for bad image