Github user marmbrus commented on a diff in the pull request:
https://github.com/apache/spark/pull/9414#discussion_r44096217
--- Diff:
sql/core/src/main/scala/org/apache/spark/sql/execution/Expand.scala ---
@@ -41,14 +41,34 @@ case class Expand(
// as UNKNOWN partitioning
override def outputPartitioning: Partitioning = UnknownPartitioning(0)
+ override def outputsUnsafeRows: Boolean = child.outputsUnsafeRows
+ override def canProcessUnsafeRows: Boolean = true
+ override def canProcessSafeRows: Boolean = true
+
+ protected val cleanedProjections = {
+ if (outputsUnsafeRows) {
+ projections.map { exprs =>
+ exprs.map(_ transform {
+ case CreateStruct(children) => CreateStructUnsafe(children)
--- End diff --
Should we do this inside of `UnsafeProjection.create`? It seems weird to
have to remember to do it in each place we use it.
---
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]