JingsongLi commented on a change in pull request #8762:
[FLINK-12844][table-planner-blink] Use default conversion class
LocalDate/LocalTime/LocalDateTime for DateType/TimeType/TimestampType in blink
URL: https://github.com/apache/flink/pull/8762#discussion_r300956144
##########
File path:
flink-table/flink-table-runtime-blink/src/main/java/org/apache/flink/table/dataformat/DataFormatConverters.java
##########
@@ -128,8 +135,21 @@
* lost its specific Java format. Only DataType
retains all its
* Java format information.
*/
- @SuppressWarnings("unchecked")
+ @Deprecated
public static DataFormatConverter getConverterForDataType(DataType
originDataType) {
+ return getConverterForDataType(originDataType, new
Context(DEFAULT_TIME_ZONE));
Review comment:
After offline discussion with @wuchong , `java.sql.Timestamp` is a special
format, `valueOf` and `toString` in `sql.Timestamp` will read the
`TimeZone.getDefault`, So there, we should just use `TimeZone.getDefault` to
correct `valueOf` and `toString`.
----------------------------------------------------------------
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]
With regards,
Apache Git Services