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

    https://github.com/apache/spark/pull/10393#discussion_r48191121
  
    --- Diff: 
sql/core/src/main/scala/org/apache/spark/sql/execution/basicOperators.scala ---
    @@ -307,6 +307,7 @@ case class MapPartitions[T, U](
         uEncoder: ExpressionEncoder[U],
         output: Seq[Attribute],
         child: SparkPlan) extends UnaryNode {
    +  override def missingInput: AttributeSet = AttributeSet.empty
    --- End diff --
    
    This fixes the problem, but I think it might be better to add something 
like `def producedAttributes: AttributeSet = AttributeSet` to `QueryPlan`.  
This can be automatically subtracted from `missingInput` and nodes that produce 
attributes can override this function.  I think that will be clearer.  What do 
you think?


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