Github user hvanhovell commented on the pull request:
https://github.com/apache/spark/pull/12720#issuecomment-215330406
This is an example that will fail if we pull out predicates in the
optimizer (`min(b.value)` does not resolve):
```sql
select b.key, min(b.value)
from src b
group by b.key
having exists ( select a.key
from src a
where a.value > 'val_9' and a.value = min(b.value)
)
```
To make this work here I need use both the `Aggregate` and its child during
the resolution of the outer references; I want to address this in a follow-up.
---
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]