Skip to content

Support Grouping Sets in DJ SQL #1559

@shangyian

Description

@shangyian

For example

dj.sql(
    metrics = "my_metric",
    dimensions=[
        ["dim1"],
        ["dim1", "dim2"]
    ],
    filters=[],
    measures=False,
)

should return

SELECT dim1, dim2, metric_expression
FROM transform_node
GROUP BY
  GROUPING SETS (
    (dim1),
    (dim1, dim2)
  )

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