Skip to content

Commit

Permalink
added a comment
Browse files Browse the repository at this point in the history
  • Loading branch information
gatorsmile committed Mar 10, 2016
1 parent f8fd37f commit 4dd3e66
Showing 1 changed file with 1 addition and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -381,6 +381,7 @@ object ColumnPruning extends Rule[LogicalPlan] {
// Can't prune the columns on LeafNode
case p @ Project(_, l: LeafNode) => p

// Prune windowExpressions and child of Window
case p @ Project(_, w: Window) if (w.outputSet -- p.references).nonEmpty =>
val newWindowExprs = w.windowExpressions.filter(p.references.contains)
val newGrandChild = prunedChild(w.child, w.references ++ p.references)
Expand Down

0 comments on commit 4dd3e66

Please sign in to comment.