Skip to content

Commit

Permalink
Add specified cases.
Browse files Browse the repository at this point in the history
  • Loading branch information
viirya committed Aug 17, 2016
1 parent 4094b43 commit 0008c3e
Showing 1 changed file with 6 additions and 6 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -730,15 +730,15 @@ object FoldablePropagation extends Rule[LogicalPlan] {

// Operators that operate on objects should only have expressions from encoders, which
// should never have foldable expressions.
case o: ObjectConsumer =>
case m: MapGroups =>
stop = true
o
case o: ObjectProducer =>
m
case f: FlatMapGroupsInR =>
stop = true
o
case a: AppendColumns =>
f
case c: CoGroup =>
stop = true
a
c

case p: LogicalPlan if !stop => p.transformExpressions {
case a: AttributeReference if foldableMap.contains(a) =>
Expand Down

0 comments on commit 0008c3e

Please sign in to comment.