You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
.aggregate does not raise on bad order statement #339
This happens in DuckDB core. Parser::ParseExpressionList() uses only the select list, and silently drops everything else. E.g. a filter will also be ignored, as long as it parses successfully:
import duckdb
duckdb.query("select unnest([0, 0, 1, 1]) as i, unnest([1, 2, 3, 4]) as x").aggregate("i, first(x) as x where things = 'bad'")
Activity
evertlammerts commentedon Feb 24, 2026
This happens in DuckDB core.
Parser::ParseExpressionList()uses only the select list, and silently drops everything else. E.g. a filter will also be ignored, as long as it parses successfully:Can you create an issue on core?
jakkes commentedon Feb 25, 2026
Sure
jakkes commentedon Feb 25, 2026
Created here: duckdb/duckdb#21072