File tree Expand file tree Collapse file tree 1 file changed +7
-1
lines changed
sql/catalyst/src/main/scala/org/apache/spark/sql/catalyst/expressions Expand file tree Collapse file tree 1 file changed +7
-1
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 , SimpleDateFormat }
21+ import java .text .{DateFormat , NumberFormat , SimpleDateFormat }
2222
2323import org .apache .spark .sql .catalyst .types ._
24+ import java .util .Locale
2425
2526/** Cast the child expression to the target data type. */
2627case class Cast (child : Expression , dataType : DataType ) extends UnaryExpression {
@@ -271,4 +272,9 @@ object Cast {
271272 new SimpleDateFormat (" yyyy-MM-dd HH:mm:ss" )
272273 }
273274 }
275+ private [sql] val threadLocalNumberFormat = new ThreadLocal [NumberFormat ] {
276+ override def initialValue () = {
277+ NumberFormat .getInstance()
278+ }
279+ }
274280}
You can’t perform that action at this time.
0 commit comments