Skip to content

Commit

Permalink
Update Cast.scala
Browse files Browse the repository at this point in the history
  • Loading branch information
baishuo authored and liancheng committed Oct 1, 2014
1 parent 8ad173c commit 3f91665
Showing 1 changed file with 1 addition and 7 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -18,10 +18,9 @@
package org.apache.spark.sql.catalyst.expressions

import java.sql.Timestamp
import java.text.{DateFormat, NumberFormat, SimpleDateFormat}
import java.text.{DateFormat, SimpleDateFormat}

import org.apache.spark.sql.catalyst.types._
import java.util.Locale

/** Cast the child expression to the target data type. */
case class Cast(child: Expression, dataType: DataType) extends UnaryExpression {
Expand Down Expand Up @@ -272,9 +271,4 @@ object Cast {
new SimpleDateFormat("yyyy-MM-dd HH:mm:ss")
}
}
private[sql] val threadLocalNumberFormat = new ThreadLocal[NumberFormat] {
override def initialValue() = {
NumberFormat.getInstance()
}
}
}

0 comments on commit 3f91665

Please sign in to comment.