Skip to content

fix: reject non-aggregate columns not covered by GROUP BY#18

Merged
harehare merged 1 commit into
mainfrom
fix/group-by-validation
Jul 23, 2026
Merged

fix: reject non-aggregate columns not covered by GROUP BY#18
harehare merged 1 commit into
mainfrom
fix/group-by-validation

Conversation

@harehare

Copy link
Copy Markdown
Owner

Previously SELECT count(*), other_col FROM t silently returned an arbitrary row's value for other_col instead of erroring, unlike PostgreSQL. Also fixes expr_structurally_eq, which compared Expr via Debug output and so missed matches whenever spans differed, causing GROUP BY column lookups to spuriously fail.

Previously SELECT count(*), other_col FROM t silently returned an
arbitrary row's value for other_col instead of erroring, unlike
PostgreSQL. Also fixes expr_structurally_eq, which compared Expr via
Debug output and so missed matches whenever spans differed, causing
GROUP BY column lookups to spuriously fail.
@harehare
harehare force-pushed the fix/group-by-validation branch from 3b0a2dd to 1a91fcf Compare July 23, 2026 12:20
@harehare
harehare merged commit 89a0c27 into main Jul 23, 2026
6 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant