mirror of
https://github.com/featurebasedb/featurebase.git
synced 2026-09-07 00:55:55 +00:00
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. |
||
|---|---|---|
| .. | ||
| cluster.go | ||
| field.go | ||
| handler.go | ||
| holder.go | ||
| index.go | ||
| logger.go | ||
| pilosa.go | ||
| pilosa_test.go | ||
| transaction.go | ||