TheNeuralBit commented on a change in pull request #14586:
URL: https://github.com/apache/beam/pull/14586#discussion_r625415877



##########
File path: 
sdks/java/io/google-cloud-platform/src/main/java/org/apache/beam/sdk/io/gcp/bigquery/BigQueryUtils.java
##########
@@ -525,6 +525,11 @@ public static TableRow toTableRow(Row row) {
         return toTableRow((Row) fieldValue);
 
       case DATETIME:
+        if (fieldValue instanceof Long) {
+          return Instant.ofEpochMilli((long) fieldValue)
+              .toDateTime(DateTimeZone.UTC)
+              .toString(BIGQUERY_TIMESTAMP_PRINTER);
+        }

Review comment:
       Hm yes lets remove it if doing so doesn't break any tests.




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