fix for cardinality estimates: rebind all patition keys with the same modulo

This commit is contained in:
Jonathan Shook
2022-07-19 12:18:38 -05:00
parent c9ee2494b9
commit 279bb2242f

View File

@@ -36,7 +36,7 @@ public class CGColumnRebinder {
}
public Binding forColumn(CqlColumnDef cdef) {
if (cdef.isLastPartitionKey()) {
if (cdef.isPartitionKey()) {
return dividedBinding(cdef);
} else {
return accumulator.forColumn(cdef);