-
Notifications
You must be signed in to change notification settings - Fork 752
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
bug: Unnest still does not work for some cases #16873
Comments
Hi @rad-pat thanks for report this bug. select t.col1 as col1, unnest(split(t.col2, ',')) as col2
from t1 as t
group by col1, col2; |
Thanks @b41sh. The AS clause in GROUP BY is processed fine in Postgres/Greenplum. It is what is created from SQLAlchemy output. I will have to see if we can adjust this somehow. |
Sorry, it seems that SQLAlchemy does not actually output the alias, but it does output the expression and it seems like that fails: Also, the docs suggest that expression can be used in GROUP BY clause
|
This is indeed a problem, I will fix this to allow set returning function in the group by clause. |
Search before asking
Version
v1.2.659-nightly
What's Wrong?
Following on from #16797
The SQL below still does not work
And also this SQL additionally does not work
How to Reproduce?
No response
Are you willing to submit PR?
The text was updated successfully, but these errors were encountered: