featurebase/test
Matt Jaffee 48552553dc
guard against NPE when setting precomputed data
If a precomputed call returns a nil Row result somehow, that could
cause a nil pointer exception when handling the result in
handlePreCall.

In this particular case, A Distinct call on a BSI field with a filter
which returned no results could return a SignedRow{} with nil *Rows
inside of it. This only manifested if there was data in a single shard
as otherwise the reduce logic created a SignedRow with empty *Row
objects rather than nil ones. Isn't that fun?

Extra fun: the reason the filter was returning no results was not
because it was actually empty, but because of another bug where
constructing the Distinct calls to compute the aggregate of a GroupBy
doesn't take into account that the group might include an integer
field which means that the call needs to be constructed
differently. That bug is not fixed in this commit, hence the tests are
still failing, but not panicking.
2021-01-08 15:03:49 -06:00
..
cluster.go guard against NPE when setting precomputed data 2021-01-08 15:03:49 -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 fix potential nil dereference in SignedRow.ToRows 2020-12-28 11:00:46 -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