Skip to content

Commit 7671a3e

Browse files
Add comment regarding NULL
1 parent f30c556 commit 7671a3e

1 file changed

Lines changed: 4 additions & 0 deletions

File tree

client-java/controller/src/main/java/org/evomaster/client/java/controller/cassandra/calculator/CassandraOperationEvaluator.java

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -111,6 +111,10 @@ private Truthness evaluateLessThanEquals(LessThanEqualsOperation<?> op, Cassandr
111111
return evaluateComparison(op, candidateRow, ComparisonType.LTE);
112112
}
113113

114+
// In CQL, a stored NULL and an absent/never-set column are the same thing at read time
115+
// (writing NULL creates a tombstone, identical to never having written the column), so
116+
// none of the null checks below (here and in evaluateContains, evaluateContainsKey and
117+
// evaluateComparison) can tell these two cases apart.
114118
private Truthness evaluateIn(InOperation op, CassandraRow candidateRow) {
115119
Object rowValue = candidateRow.getValue(op.getColumnName());
116120
if (rowValue == null) {

0 commit comments

Comments
 (0)