Github user liancheng commented on a diff in the pull request:
https://github.com/apache/spark/pull/5082#discussion_r26914668
--- Diff:
sql/catalyst/src/main/scala/org/apache/spark/sql/catalyst/plans/logical/basicOperators.scala
---
@@ -191,6 +191,8 @@ case class Expand(
val sizeInBytes = child.statistics.sizeInBytes * projections.length
Statistics(sizeInBytes = sizeInBytes)
}
+
+ override def missingInput = super.missingInput.filter(_.name !=
VirtualColumn.groupingIdName)
--- End diff --
My point is we may also support other virtual columns like
`INPUT__FILE__NAME` and `BLOCK__OFFSET__INSIDE__FILE` in the future. These
virtual columns can be used in more general places like `Project` and `Filter`.
That's why I think moving this to `QueryPlan` may make more sense.
---
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]