Github user marmbrus commented on a diff in the pull request:
https://github.com/apache/spark/pull/10852#discussion_r50767337
--- Diff:
sql/catalyst/src/main/scala/org/apache/spark/sql/catalyst/plans/logical/object.scala
---
@@ -30,6 +30,15 @@ trait ObjectOperator extends LogicalPlan {
/** The serializer that is used to produce the output of this operator.
*/
def serializer: Seq[NamedExpression]
+ override def output: Seq[Attribute] = serializer.map(_.toAttribute)
+
+ /**
+ * An [[ObjectOperator]] may have one or more deserializers to convert
internal rows to objects.
+ * For each deserializer, [[ObjectOperator]] should also provide the
attributes that can resolve
+ * this deserializer.
--- End diff --
"An [[ObjectOperator]] must also provide the attributes that are available
during the resolution of each deserializer."
---
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]