docete commented on a change in pull request #10401: [FLINK-15020][hive] 
Support timestamp type in hive
URL: https://github.com/apache/flink/pull/10401#discussion_r353518086
 
 

 ##########
 File path: 
flink-connectors/flink-connector-hive/src/main/java/org/apache/flink/table/functions/hive/conversion/HiveInspectors.java
 ##########
 @@ -436,6 +440,7 @@ public static DataType toFlinkType(ObjectInspector 
inspector) {
                                        case DATE:
                                                return Date.class;
                                        case TIMESTAMP:
+                                               return LocalDateTime.class;
 
 Review comment:
   internally flink use the new SqlTimestamp to represent a 
java.sql.Timestmap/java.time.LocalDateTime object. and by default, TIMESTAMP 
type would convert to java.time.LocalDateTime when leaving the table ecosystem.

----------------------------------------------------------------
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

Reply via email to