featurebase/sql
Seebs 932e84b681 handling aggregate types: add to protobuf, etc
We want to distinguish different *kinds* of GroupCounts, so we're
making the GroupCounts parent object track its type so we can keep that
correct.

Adding this to protobuf, etc, then creates some weird behaviors
because sometimes we expect []GroupCount, and sometimes we expect
*GroupCounts. This implies changes to test cases. Also, the
changes to test cases imply that some test cases are probably now
wrong; for instance, they're expecting a "sum" column, equal to zero,
when no sum was requested.

We try to make the encoder handle a []*GroupCount gotten from another
node without panicing, and avoid breaking the semantics of the existing
messages, renumbering messages or components, etc.

Since a previous version, the `.Groups` member has been privatized,
and the `.Get()` convenience accessor has been renamed `.Groups()`
and is now used consistently in a way that should reduce the risk
of nil pointers causing crashes. Also, NewGroupCounts is used in
a couple more places.
2021-01-19 16:23:15 -06:00
..
column.go porting sqlmapper from vdsm 2020-08-18 15:53:26 +02:00
ddl.go fix SQL memory leak 2020-08-31 13:10:49 -04:00
extract.go add named returns to clarify extractLimitOffset 2020-09-03 10:37:09 -04:00
mapper.go porting sqlmapper from vdsm 2020-08-18 15:53:26 +02:00
mapper_test.go porting sqlmapper from vdsm 2020-08-18 15:53:26 +02:00
mask.go porting sqlmapper from vdsm 2020-08-18 15:53:26 +02:00
model.go porting sqlmapper from vdsm 2020-08-18 15:53:26 +02:00
query.go porting sqlmapper from vdsm 2020-08-18 15:53:26 +02:00
reduce.go fix SQL memory leak 2020-08-31 13:10:49 -04:00
reduce_test.go porting sqlmapper from vdsm 2020-08-18 15:53:26 +02:00
router.go add sql mapper routes for count(*) on joins 2020-08-27 22:49:54 -05:00
select.go handling aggregate types: add to protobuf, etc 2021-01-19 16:23:15 -06:00
show.go fix type names in PQL Extract and SQL Show 2020-09-15 12:53:21 -04:00