Open Samyak2 opened 1 year ago
Are there test cases illustrating what code will be generated given the sample SQL we use in the blog post?
Not yet. I'm working on it currently.
Interesting, is there an example for the following too?
select
col1,
col3 + 1,
max(col2 + 1)
from abc
group by col1, col3
Description
We took a second look at the
GroupBy
instruction and found it very lacking (see #16). This PR represents an overhaul of it.Partially fixes #24
Changes
Aggregate
instruction to calculate aggregations on a grouped tableCodegenContext
struct to make passing them around easier.GroupBy
will now produce a grouped table which will be lazily evaluated. Note: the evaluation is not in scope for this PR.Some questions/concerns