Skip to content

Commit

Permalink
Avoid redundant imports
Browse files Browse the repository at this point in the history
  • Loading branch information
Jeffrharr committed May 22, 2015
1 parent 229f543 commit 06fb9ea
Showing 1 changed file with 2 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,6 @@
package org.apache.spark.sql.catalyst.expressions

import org.apache.spark.annotation.DeveloperApi
import org.apache.spark.sql.catalyst.rules
import org.apache.spark.sql.catalyst.rules._
import org.apache.spark.util.Utils

Expand All @@ -35,11 +34,11 @@ package object codegen {
protected[codegen] val globalLock = org.apache.spark.sql.catalyst.ScalaReflectionLock

/** Canonicalizes an expression so those that differ only by names can reuse the same code. */
object ExpressionCanonicalizer extends rules.RuleExecutor[Expression] {
object ExpressionCanonicalizer extends RuleExecutor[Expression] {
val batches =
Batch("CleanExpressions", FixedPoint(20), CleanExpressions) :: Nil

object CleanExpressions extends rules.Rule[Expression] {
object CleanExpressions extends Rule[Expression] {
def apply(e: Expression): Expression = e transform {
case Alias(c, _) => c
}
Expand Down

0 comments on commit 06fb9ea

Please sign in to comment.