featurebase/test
Matt Jaffee 121f3fb610
fix Count(Distinct) bug and add better tests
the Distinct call would get precomputed correctly, but then the
executeCount would happen in the available shards context of the
index. So if the index only had records in (e.g.) shards 10,12,18,22,
and all the values of the Distinct call were in shard 0, you'd see 0
results.

The fix skips the whole map/reduce step of executeCount (which was
basically fake anyway when the argument is precomputed), and just adds
up all counts of all the precomputed segments.

This currently won't properly count Distinct values from an int field
which contains negative numbers... going to add a test and fix for
that next.

There is also still a key translation bug which is why the one test
case is commented out... fix coming for that soon as well.
2020-12-23 14:37:03 -06:00
..
cluster.go fix Count(Distinct) bug and add better tests 2020-12-23 14:37:03 -06:00
field.go database per shard, HolderConfig, rbf bit-wise import speedups. 2020-09-04 13:00:33 -05:00
handler.go remove the last usages of test.NewExecutor and cleanup unused in test package 2018-07-01 07:31:31 -05:00
holder.go blue_green migration. holdbkg.go holder goroutine. 2020-09-11 14:24:15 -05:00
index.go blue_green migration. holdbkg.go holder goroutine. 2020-09-11 14:24:15 -05:00
logger.go lock BufferLogger for reads/writes 2019-11-12 12:15:13 -06:00
pilosa.go Increase test http client timeout 2020-10-06 09:36:31 -06:00
pilosa_test.go testhook: leak auditing infrastructure 2020-08-24 11:26:39 -05:00
transaction.go increase test deadlineSkew to 1s 2020-05-18 19:57:44 -05:00