File tree Expand file tree Collapse file tree 1 file changed +1
-7
lines changed
sql/catalyst/src/main/scala/org/apache/spark/sql/catalyst/expressions Expand file tree Collapse file tree 1 file changed +1
-7
lines changed Original file line number Diff line number Diff line change 1818package org .apache .spark .sql .catalyst .expressions
1919
2020import java .sql .Timestamp
21- import java .text .{DateFormat , NumberFormat , SimpleDateFormat }
21+ import java .text .{DateFormat , SimpleDateFormat }
2222
2323import org .apache .spark .sql .catalyst .types ._
24- import java .util .Locale
2524
2625/** Cast the child expression to the target data type. */
2726case 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}
You can’t perform that action at this time.
0 commit comments