reuvenlax commented on code in PR #17778:
URL: https://github.com/apache/beam/pull/17778#discussion_r886162205


##########
sdks/java/io/google-cloud-platform/src/main/java/org/apache/beam/sdk/io/gcp/bigquery/TableRowToStorageApiProto.java:
##########
@@ -370,10 +376,20 @@ static Object singularFieldToProtoValue(
       case "TIMESTAMP":
         if (value instanceof String) {
           try {
-            return ChronoUnit.MICROS.between(Instant.EPOCH, 
Instant.parse((String) value));
-          } catch (DateTimeParseException e) {
-            return ChronoUnit.MICROS.between(
+            // "12345667"
+            ChronoUnit.MICROS.between(

Review Comment:
   Seems like the formatted datetime would be the more-common case, right? If 
so, then we should probably try to parse using the DateTimeFormatter first.



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

Reply via email to