Skip to content

Commit

Permalink
Revert "[SPARK-6397][SQL] Check the missingInput simply"
Browse files Browse the repository at this point in the history
This reverts commit e566fe5.
  • Loading branch information
liancheng committed Mar 23, 2015
1 parent e566fe5 commit bf044de
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -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")
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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 {
Expand Down

0 comments on commit bf044de

Please sign in to comment.