macroguo-ghy commented on code in PR #4833:
URL: https://github.com/apache/calcite/pull/4833#discussion_r2936860911
##########
file/src/main/java/org/apache/calcite/adapter/file/CsvEnumerator.java:
##########
@@ -76,20 +75,35 @@ public class CsvEnumerator<E> implements Enumerator<E> {
private final RowConverter<E> rowConverter;
private @Nullable E current;
- private static final FastDateFormat TIME_FORMAT_DATE;
- private static final FastDateFormat TIME_FORMAT_TIME;
- private static final FastDateFormat TIME_FORMAT_TIMESTAMP;
+ private static final TimeZone GMT = TimeZone.getTimeZone("GMT");
Review Comment:
[FastDateFormat](https://github.com/apache/commons-lang/blob/487ba4d9a60e678be874ceb9274384268bb32a13/src/main/java/org/apache/commons/lang3/time/FastDateFormat.java#L78)
is a fast and thread-safe version of SimpleDateFormat
--
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.
To unsubscribe, e-mail: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]