Github user gatorsmile commented on the pull request:
https://github.com/apache/spark/pull/10731#issuecomment-198018058
What you said about order by is right. The most tricky part is `*`. When we
are doing select (*) in DB2, the position number is based on the table
definition in catalog table.
Regarding Group By, I do not know which behavior is right. Different from
Order By, Group By is below Project/SELECT. Thus, personally, I do not know
what is the expected behavior when resolving position number in group by. Just
like, the alias defined in Project/Select cannot be used in Group By.
---
If your project is set up for it, you can reply to this email and have your
reply appear on GitHub as well. If your project does not have this feature
enabled and wishes so, or if the feature is enabled but not working, please
contact infrastructure at [email protected] or file a JIRA ticket
with INFRA.
---
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]