Github user QiangCai commented on a diff in the pull request:
https://github.com/apache/carbondata/pull/1125#discussion_r126878337
--- Diff:
integration/spark-common/src/main/scala/org/apache/carbondata/spark/util/CommonUtil.scala
---
@@ -54,6 +53,12 @@ object CommonUtil {
val FIXED_DECIMAL = """decimal\(\s*(\d+)\s*,\s*(\-?\d+)\s*\)""".r
val FIXED_DECIMALTYPE = """decimaltype\(\s*(\d+)\s*,\s*(\-?\d+)\s*\)""".r
+ val timestampFormatter = new
SimpleDateFormat(CarbonProperties.getInstance
--- End diff --
SimpleDateFormat is not thread safe.
In mutiple threads, it will return wrong value.
---
If your project is set up for it, you can reply to this email and have your
reply appear on GitHub as well. If your project does not have this feature
enabled and wishes so, or if the feature is enabled but not working, please
contact infrastructure at [email protected] or file a JIRA ticket
with INFRA.
---