ColumnNotFoundError
occurs when ORDER BY
references unaliased column in SQL query with aggregation
#20428
Open
2 tasks done
Labels
bug
Something isn't working
needs triage
Awaiting prioritization by a maintainer
python
Related to Python Polars
Checks
Reproducible example
Log output
polars.exceptions.ColumnNotFoundError: "a" not found
Issue description
The column alias is expected by the
ORDER BY
query, meaning the following query works:The unexpected behaviour is also seen when using fully qualified identifiers:
Expected behavior
Should be equivalent to
Installed versions
The text was updated successfully, but these errors were encountered: