Github user liancheng commented on a diff in the pull request:
https://github.com/apache/spark/pull/12364#discussion_r62167413
--- Diff:
sql/catalyst/src/main/scala/org/apache/spark/sql/catalyst/expressions/objects.scala
---
@@ -688,3 +688,38 @@ case class AssertNotNull(child: Expression,
walkedTypePath: Seq[String])
ev.copy(code = code, isNull = "false", value = childGen.value)
}
}
+
+/**
+ * Returns the value of field at index `index` from the external row
`child`.
--- End diff --
Would be nice to add a more intuitive description:
> This class can be viewed as [[GetStructField]] for [[Row]]s instead of
[[InternalRow]]s.
It took me some time to realize this...
---
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]