nielm commented on a change in pull request #13762:
URL: https://github.com/apache/beam/pull/13762#discussion_r563065643



##########
File path: 
sdks/java/io/google-cloud-platform/src/main/java/org/apache/beam/sdk/io/gcp/spanner/MutationSizeEstimator.java
##########
@@ -153,6 +161,21 @@ private static long estimateArrayValue(Value v) {
         return 12L * v.getDateArray().size();
       case TIMESTAMP:
         return 12L * v.getTimestampArray().size();
+      case NUMERIC:
+        totalLength = 0;
+        for (BigDecimal n : v.getNumericArray()) {
+          if (n == null) {

Review comment:
       Yes:
   The feature to support writing NUMERIC in BEAM was added in #12818  
(BEAM-10875), but missed adding support for using java BigDecimal type support 
to the part of the code where the size of mutated values are calculated.
   This PR fixes that.




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