Right now, in the finishLocalSampling method of the ColumnFamilyStore we return the size of the list of returned partitions. Instead, we should be propagating the actual cardinality of the sampled set.
It can be easily done by just reading the read_cardinality and write_cardinality properties of the scylla's REST API response.
Right now, in the
finishLocalSampling
method of theColumnFamilyStore
we return the size of the list of returned partitions. Instead, we should be propagating the actual cardinality of the sampled set. It can be easily done by just reading theread_cardinality
andwrite_cardinality
properties of the scylla's REST API response.