Skip to content
This repository was archived by the owner on May 12, 2024. It is now read-only.
This repository was archived by the owner on May 12, 2024. It is now read-only.

GROUP BY support #24

@Samyak2

Description

@Samyak2

Overview

This is a tracking issue for adding support for the GROUP BY clause of a SELECT statement. This allows aggregations over unique values of a column.

Tasks

  • add instructions for GROUP BY and aggregations
    • See the GroupBy instruction
    • Aggregations are defined in the expr for Project or Filter just like normal non-grouped aggregations
    • Note: this is most likely subject to change
  • add GROUP BY codegen to the generic dialect
  • evaluating GroupBy instructions and aggregations
    • from How should aggregate work in the VM #16, we saw that
      • GroupBy should probably have input and output registers like Project
      • we need a different table with an efficient index implementation to look up the grouped columns
      • the HAVING clause can re-use aggregations that are already computed and it might be difficult to perform common sub-expression elimination here

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions