Skip to content

Missing SerializeValue impl for MaybeEmptiable<T>. #1521

@wprzytula

Description

@wprzytula

Background

Empty CQL values are those that have length equal to 0. It's a legacy from old Cassandra versions.

MaybeEmpty is type-safe representation of any type that can be inserted into the DB as empty (some types are emptiable and others are not).
It was introduced to support typed deserialization of a value that is possibly empty in the DB; therefore, it implements DeserializeValue.

There's also CqlValue::Empty variant, so it's possible to insert empty values to the DB using this type-erased method (i.e., CqlValue umbrella type).

Problem

MaybeEmpty does not implement SerializeValue, so we're missing the proper way to insert empty types into the DB. Let's add this missing implementation.

Metadata

Metadata

Type

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions