Github user viirya commented on a diff in the pull request:

    https://github.com/apache/spark/pull/17770#discussion_r117670112
  
    --- Diff: 
sql/catalyst/src/main/scala/org/apache/spark/sql/catalyst/analysis/Analyzer.scala
 ---
    @@ -1066,7 +1071,8 @@ class Analyzer(
               case ae: AnalysisException => s
             }
     
    -      case f @ Filter(cond, child) if !f.resolved && child.resolved =>
    +      case f @ Filter(cond, orgChild) if !f.resolved && orgChild.resolved 
=>
    +        val child = EliminateBarriers(orgChild)
    --- End diff --
    
    Yes, we do need it. The logical plan added with missing attributes is 
needed to be traverse for some cases. At lease one test gets failed previously 
for that. So we can't keep the barrier at original position.


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