Skip to content

Commit a3961d9

Browse files
baishuoliancheng
authored andcommitted
Update Cast.scala
1 parent f7467d0 commit a3961d9

File tree

1 file changed

+1
-7
lines changed
  • sql/catalyst/src/main/scala/org/apache/spark/sql/catalyst/expressions

1 file changed

+1
-7
lines changed

sql/catalyst/src/main/scala/org/apache/spark/sql/catalyst/expressions/Cast.scala

Lines changed: 1 addition & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -18,10 +18,9 @@
1818
package org.apache.spark.sql.catalyst.expressions
1919

2020
import java.sql.Timestamp
21-
import java.text.{DateFormat, NumberFormat, SimpleDateFormat}
21+
import java.text.{DateFormat, SimpleDateFormat}
2222

2323
import org.apache.spark.sql.catalyst.types._
24-
import java.util.Locale
2524

2625
/** Cast the child expression to the target data type. */
2726
case class Cast(child: Expression, dataType: DataType) extends UnaryExpression {
@@ -272,9 +271,4 @@ object Cast {
272271
new SimpleDateFormat("yyyy-MM-dd HH:mm:ss")
273272
}
274273
}
275-
private[sql] val threadLocalNumberFormat = new ThreadLocal[NumberFormat] {
276-
override def initialValue() = {
277-
NumberFormat.getInstance()
278-
}
279-
}
280274
}

0 commit comments

Comments
 (0)