Skip to content

[Feature] DataFusion engine E6 (S7): SQL joins, set operations, window functions #1511

Backlog

Description

@milindsrivastava1997

Example

A SQL corpus query with JOIN, INTERSECT and ROW_NUMBER() OVER (PARTITION BY …) runs on the new engine and matches DataFusion running the same SQL directly.

User need and MVP

SQL plans. Simplest correct version only; no performance work (design doc, Principle).

Authoritative design

D13 (Join, SetOp, Dedup, SQLWindowFunc).

Agent orchestration: orchestration plan.

Inputs, outputs, and invariants

Join → HashJoinExec; set operations → semi/anti joins plus AggregateExec for distinct, as DataFusion plans INTERSECT/EXCEPT; SQLWindowFunc → DataFusion's window operator.

Before and after behavior

Before: SQL plans refused. After: SQL corpus plans with these operators compile and run.

Unit and end-to-end acceptance tests

  • Per operator: compare with DataFusion's SQL answer on the same in-memory tables.

Explicit non-goals

SQL query matching in ASAPQuery, PromQL operators.

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementsql

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions