SeaQL / otter-sql

🦦 An Embeddable SQL Executor in Rust
Apache License 2.0
22 stars 1 forks source link

Groupby and Aggregates - Instructions and Codegen overhaul #26

Open Samyak2 opened 1 year ago

Samyak2 commented 1 year ago

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

Some questions/concerns

tyt2y3 commented 1 year ago

Are there test cases illustrating what code will be generated given the sample SQL we use in the blog post?

Samyak2 commented 1 year ago

Not yet. I'm working on it currently.

tyt2y3 commented 1 year ago

Interesting, is there an example for the following too?

select
    col1,
    col3 + 1,
    max(col2 + 1)
from abc
group by col1, col3