Abacn commented on code in PR #24447:
URL: https://github.com/apache/beam/pull/24447#discussion_r1037290890


##########
sdks/java/io/google-cloud-platform/src/main/java/org/apache/beam/sdk/io/gcp/bigquery/TableRowToStorageApiProto.java:
##########
@@ -681,7 +681,7 @@ private static void fieldDescriptorFromTableField(
               new BigDecimal((String) value));
         } else if (value instanceof BigDecimal) {
           return 
BigDecimalByteStringEncoder.encodeToBigNumericByteString(((BigDecimal) value));
-        } else if (value instanceof Double || value instanceof Float) {

Review Comment:
   Thanks. Understand. However we should be careful to convert all Number 
(other than BigDecimal) to Double here as the it can lose precision. Still 
think we should add a condition `else if (value instanceof Integer or value 
instanceof Long) {` 



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