mirror of
https://github.com/featurebasedb/featurebase.git
synced 2026-08-28 10:54:59 +00:00
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. |
||
|---|---|---|
| .. | ||
| proto.go | ||