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
Positional arguments in group by not being properly inferred in subqueries with select * #56466
SELECT *
FROM
(
SELECT *
FROM
(
SELECT
name,
age
FROM users
)
GROUP BY
1,
2
)
reports the following error: DB::Exception: Illegal value for positional argument in GROUP BY: While processing SELECT * FROM (SELECT name, age FROM users) GROUP BY 1, 2. (ILLEGAL_TYPE_OF_ARGUMENT)
Expected behavior:
Alice 50
John 33
Ksenia 48
Additional context
This functionality worked in versions prior to 22.12. Appears to be broken since then.
Replacing the positional arguments with the column names works as expected
It also works when enabling the experimental analyzer
Activity
Closes: #56466