Skip to content
Snippets Groups Projects
Commit bf044def authored by Cheng Lian's avatar Cheng Lian
Browse files

Revert "[SPARK-6397][SQL] Check the missingInput simply"

This reverts commit e566fe59.
parent e566fe59
No related branches found
No related tags found
No related merge requests found
......@@ -85,8 +85,9 @@ class CheckAnalysis {
cleaned.foreach(checkValidAggregateExpression)
case o if o.children.nonEmpty && o.missingInput.nonEmpty =>
val missingAttributes = o.missingInput.map(_.prettyString).mkString(",")
case o if o.children.nonEmpty &&
!o.references.filter(_.name != "grouping__id").subsetOf(o.inputSet) =>
val missingAttributes = (o.references -- o.inputSet).map(_.prettyString).mkString(",")
val input = o.inputSet.map(_.prettyString).mkString(",")
failAnalysis(s"resolved attributes $missingAttributes missing from $input")
......
......@@ -191,8 +191,6 @@ case class Expand(
val sizeInBytes = child.statistics.sizeInBytes * projections.length
Statistics(sizeInBytes = sizeInBytes)
}
override def missingInput = super.missingInput.filter(_.name != VirtualColumn.groupingIdName)
}
trait GroupingAnalytics extends UnaryNode {
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment