ekaterinadimitrova2 commented on a change in pull request #1083:
URL: https://github.com/apache/cassandra/pull/1083#discussion_r660078145



##########
File path: src/java/org/apache/cassandra/db/SinglePartitionReadCommand.java
##########
@@ -1033,7 +1033,15 @@ private ClusteringIndexNamesFilter 
reduceFilter(ClusteringIndexNamesFilter filte
 
         SearchIterator<Clustering, Row> searchIter = 
result.searchIterator(columnFilter(), false);
 
-        PartitionColumns columns = columnFilter().fetchedColumns();
+        // According to the CQL semantics a row exists if at least one of its 
columns is not null (including the primary key columns).
+        // Having the queried columns not null is unfortunately not enough to 
prove that a row exists has some column deletion

Review comment:
       `// Having the queried columns not null is unfortunately not enough to 
prove that a row exists because some column deletion`

##########
File path: 
test/distributed/org/apache/cassandra/distributed/test/SinglePartitionReadCommandTest.java
##########
@@ -144,4 +144,47 @@ public void 
testPartitionWithStaticColumnsOnlyOnOneNodeAndColumnDeletionOnTheOth
             assertRows(cluster.coordinator(2).execute(withKeyspace("SELECT 
DISTINCT s1 FROM %s.tbl WHERE pk=2"), ConsistencyLevel.ALL));
         }
     }
+
+    @Test
+    public void testNonCompactTableWithEmptyRowOnBothNodes() throws Throwable

Review comment:
       I think you meant empty column, not really a row? 




-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]



---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to