Github user yhuai commented on the pull request:

    https://github.com/apache/spark/pull/9326#issuecomment-151934042
  
    Actually, `sameResult` will remove `SubQuery` nodes. I think the problem is 
that `cleanRight.cleanArgs == cleanLeft.cleanArgs` returns false when two 
`LogicalRelation`s are considered generating the same result (because of 
`expectedOutputAttributes` that we added in #8889 ). I think the right fix is 
to correctly override the `cleanArgs` field of `LogicalRelation` to exclude 
`expectedOutputAttributes`. 


---
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]

Reply via email to