Github user rxin commented on a diff in the pull request:
https://github.com/apache/spark/pull/11177#discussion_r52806016
--- Diff:
sql/core/src/main/scala/org/apache/spark/sql/execution/Expand.scala ---
@@ -71,9 +80,86 @@ case class Expand(
idx = 0
}
+ numOutputRows += 1
result
}
}
}
}
+
+ override def upstream(): RDD[InternalRow] = {
+ child.asInstanceOf[CodegenSupport].upstream()
+ }
+
+ protected override def doProduce(ctx: CodegenContext): String = {
+ child.asInstanceOf[CodegenSupport].produce(ctx, this)
+ }
+
+ override def doConsume(ctx: CodegenContext, input: Seq[ExprCode]):
String = {
+ // Some columns have the same expression in all the projections, so
collect the unique
+ // expressions.
+ val columnUniqueExpressions: IndexedSeq[Set[Expression]] =
output.indices.map { i =>
--- End diff --
for this one, can we explain what the indexes are, and what the expressions
are?
---
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]