Github user viirya commented on a diff in the pull request:
https://github.com/apache/spark/pull/11995#discussion_r58000861
--- Diff:
sql/catalyst/src/main/scala/org/apache/spark/sql/catalyst/plans/logical/basicOperators.scala
---
@@ -514,12 +524,13 @@ private[sql] object Expand {
* @param projections to apply
* @param output of all projections.
* @param child operator.
+ * @param groupByAttrs the attributes used in group by.
*/
case class Expand(
projections: Seq[Seq[Expression]],
output: Seq[Attribute],
- child: LogicalPlan) extends UnaryNode {
-
+ child: LogicalPlan,
+ groupByAttrs: Seq[Attribute]) extends UnaryNode {
--- End diff --
Thanks for pointing the problem. Agreed after re-thinking about it. As
separating `projections` and `output` causes the problem. How about we get the
output from `projections`?
As there are more than one projection, we can just get the output from the
first projection and verify its consistency with other projections.
---
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]