Github user scwf commented on the pull request:
https://github.com/apache/spark/pull/6169#issuecomment-102256674
in the old version we support sort by attribute which not in child output,
that is what `ResolveSortReferences` does, so we support
```
select key form src order by value
```
and
```
select sum(value) from src group by key order by key
```
this two sql is valid in many sql dialect.
after windowfunction is in, this rule is invalid when there are
windowfunction in select, this pr is try to fix this. but now this resolution
is not right, @yhuai any idea for this?
---
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]