-
Notifications
You must be signed in to change notification settings - Fork 247
Closed
Labels
bugInvalid compiler output or panicInvalid compiler output or panic
Description
What happened?
prql version 0.13.7 generates invalid DISTINCT ON clause for postgresql. In this case it outputs: DISTINCT ON (id, name) that should be DISTINCT ON (id, name) *.
kudos for this great project!
PRQL input
from t1
group {t1.id, t1.name} (take 1)
aggregate {c=count this}SQL output
WITH table_0 AS (
SELECT
DISTINCT ON (id, name)
FROM
t1
)
SELECT
COUNT(*) AS c
FROM
table_0Expected SQL output
WITH table_0 AS (
SELECT
DISTINCT ON (id, name) *
FROM
t1
)
SELECT
COUNT(*) AS c
FROM
table_0MVCE confirmation
- Minimal example
- New issue
Anything else?
No response
Metadata
Metadata
Assignees
Labels
bugInvalid compiler output or panicInvalid compiler output or panic