Details
-
Bug
-
Status: Resolved
-
Major
-
Resolution: Fixed
-
4.0.0
Description
The following query will fail:
SELECT NULLIF(id + 1, 1) from range(10) group by id
This is because NullIf gets rewritten to With, then RewriteWithExpression tries to pull common expression id + 1 out of the aggregate, resulting in an invalid plan.
Attachments
Attachments
Issue Links
- links to