featurebase/internal
Matt Jaffee 9ee5f52a11
fix some Distinct key translation issues (e.g. empty index)
This commit changes executeDistinct to return either a *Row or a
SignedRow (instead of only being able to return a SignedRow). Distinct
on a set field will return a *Row while an int field will still return
a signed row.

We then add Field and Index fields to the Row object so that we can
determine how to translate the rows IDs to keys (if needed). This adds
a lot of logic around the translation which fixes bugs where Distinct
calls would fail to get translated.

There are, I think, still issues if you were to try to join a keyed
field to a keyed index which wasn't explicitly specified as the
field's foreign index. The IDs in the field wouldn't be using the same
translation as the IDs in the index, so the query might appear to work
but give incorrect results.
2020-12-23 14:37:03 -06:00
..
clustertests Run "go mod vendor" outside of Docker so authenticated modules may use system credentials 2019-12-20 12:21:47 -06:00
test v2.0.0 2019-10-08 14:56:17 -06:00
internal.go Apply Apache License 2.0 2017-04-28 14:22:03 -05:00
LICENSE Add LICENSE to internal/ folder. 2017-05-01 20:32:04 -05:00
private.pb.go Pass Schema in ClusterStatus message 2020-06-03 13:26:16 +02:00
private.proto Pass Schema in ClusterStatus message 2020-06-03 13:26:16 +02:00
public.pb.go fix some Distinct key translation issues (e.g. empty index) 2020-12-23 14:37:03 -06:00
public.proto fix some Distinct key translation issues (e.g. empty index) 2020-12-23 14:37:03 -06:00