caiconghui commented on a change in pull request #5233:
URL: https://github.com/apache/incubator-doris/pull/5233#discussion_r559653537
##########
File path:
fe/spark-dpp/src/main/java/org/apache/doris/load/loadv2/dpp/ColumnParser.java
##########
@@ -21,18 +21,22 @@
import org.apache.doris.load.loadv2.etl.EtlJobConfig;
import org.apache.log4j.LogManager;
import org.apache.log4j.Logger;
-import org.joda.time.DateTime;
+import org.joda.time.format.DateTimeFormat;
+import org.joda.time.format.DateTimeFormatter;
import java.io.Serializable;
import java.math.BigDecimal;
import java.math.BigInteger;
-import java.util.Date;
// Parser to validate value for different type
public abstract class ColumnParser implements Serializable {
protected static final Logger LOG =
LogManager.getLogger(ColumnParser.class);
+ // thread safe formatter
+ public static final DateTimeFormatter DATE_FORMATTER =
DateTimeFormat.forPattern("YYYY-MM-DD");
Review comment:
@wangbo sorry, it should be 'yyyy-MM-dd'. you can see
https://zhuanlan.zhihu.com/p/101150248
----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
For queries about this service, please contact Infrastructure at:
[email protected]
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]