Cassandra 准备了带有空列的语句?

Cassandra prepared statements with empty columns?

引用这篇文章:

http://www.datastax.com/dev/blog/4-simple-rules-when-using-the-datastax-drivers-for-cassandra

"Cassandra’s storage engine is optimized to avoid storing unnecessary empty columns, but when using prepared statements those parameters that are not provided result in null values being passed to Cassandra (and thus tombstones being stored). Currently the only workaround for this scenario is to have a predefined set of prepared statement for the most common insert combinations and using normal statements for the more rare cases."

我注意到有一项任务是探索此问题的可能解决方案:

https://issues.apache.org/jira/browse/CASSANDRA-7304

但我似乎找不到这是否真的得到解决,在哪个版本中(例如 Java Cassandra 驱动程序)以及如何解决?

如果没有解决,使用不同的插入语句仍然是最好的解决方法吗?

未设置的变量是相对较新的,确实可以用来在执行准备好的语句时避免逻辑删除,但它们只能从协议 V4 开始使用,即从 Cassandra 2.2 开始。

从版本 3.0.0 开始支持 Java 驱动程序中未设置的变量。使用协议 V4 时,默认情况下所有变量都将被视为未设置,除非您明确将它们设置为其他内容。如果您需要 "un-set" 先前设置的变量,您可以调用 BoundStatement.

unset() 方法之一