Describe the bug
#110 suggests we can group by alias, however, I modify the existing test case select_simple_aggregate_with_groupby_with_aliases a bit, then it fails
To Reproduce
SELECT state AS a, MIN(age) AS b FROM person GROUP BY state
shows correct answer
SELECT state AS a, MIN(age) AS b FROM person GROUP BY a
raises error Plan("Projection references non-aggregate values")
Expected behavior
SELECT state AS a, MIN(age) AS b FROM person GROUP BY state
SELECT state AS a, MIN(age) AS b FROM person GROUP BY a
returns same answer
Describe the bug
#110 suggests we can group by alias, however, I modify the existing test case
select_simple_aggregate_with_groupby_with_aliasesa bit, then it failsTo Reproduce
shows correct answer
raises error
Plan("Projection references non-aggregate values")Expected behavior
returns same answer