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

    https://github.com/apache/spark/pull/17428#discussion_r108185240
  
    --- Diff: 
sql/catalyst/src/main/scala/org/apache/spark/sql/catalyst/plans/QueryPlan.scala 
---
    @@ -289,6 +289,9 @@ abstract class QueryPlan[PlanType <: 
QueryPlan[PlanType]] extends TreeNode[PlanT
           case m: Map[_, _] => m
           case d: DataType => d // Avoid unpacking Structs
           case seq: Traversable[_] => seq.map(recursiveTransform)
    +      case ExistenceJoin(exists: Attribute) =>
    +        // `exists` must be an Attribute in ExistenceJoin
    +        ExistenceJoin(transformExpression(exists).asInstanceOf[Attribute])
    --- End diff --
    
    Is there a particular reason we need to cast the return type of 
`transformExpression(<instance_of_Attribute>)` to type `Attribute`?


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