Allowing UNSET_VALUE in cqlengine? [Feature request]

13 views
Skip to first unread message

Michał

unread,
Mar 20, 2017, 7:19:18 AM3/20/17
to DataStax Python Driver for Apache Cassandra User Mailing List
Currently there is no way to use UNSET_VALUE in the cqlengine ORM and setting None (null) triggers
implicit delete and therefore creation of unwanted tombstones. Are there any plans to support using UNSET_VALUE
in models?

Adam Holmberg

unread,
Mar 20, 2017, 4:25:17 PM3/20/17
to python-dr...@lists.datastax.com
You are correct. Setting None is the same as explicitly deleting that field (the docs were recently expanded in these areas):

The intent is to provide UNSET semantics by not setting a particular parameter in kwargs (as opposed to explicitly setting to None). Please be aware there is a read/update/write path that is not working perfectly in that regard. It is being addressed:
https://datastax-oss.atlassian.net/browse/PYTHON-719

Regards,
Adam Holmberg

--
You received this message because you are subscribed to the Google Groups "DataStax Python Driver for Apache Cassandra User Mailing List" group.
To unsubscribe from this group and stop receiving emails from it, send an email to python-driver-user+unsub...@lists.datastax.com.

Reply all
Reply to author
Forward
0 new messages