wuchong commented on a change in pull request #13834:
URL: https://github.com/apache/flink/pull/13834#discussion_r514901214



##########
File path: 
flink-formats/flink-csv/src/main/java/org/apache/flink/formats/csv/RowDataToCsvConverters.java
##########
@@ -128,7 +128,7 @@ private static RowFieldConverter 
createRowFieldConverter(LogicalType fieldType)
                        case DATE:
                                return (csvMapper, container, row, pos) -> 
convertDate(row.getInt(pos), container);
                        case TIME_WITHOUT_TIME_ZONE:
-                               return (csvMapper, container, row, pos) -> 
convertTime(row.getInt(pos), container);
+                               return (csvMapper, container, row, pos) -> 
convertTime(row.getLong(pos), container);

Review comment:
       That's why we don't support `precision > 3` for now.
   When the planner supports `precision > 3` in the future, we can update csv 
format to use the higer precision data structure (maybe long or otheres). 
   




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


Reply via email to