You are viewing a plain text version of this content. The canonical link for it is here.
Posted to github@beam.apache.org by GitBox <gi...@apache.org> on 2021/11/29 20:06:00 UTC
[GitHub] [beam] TheNeuralBit commented on a change in pull request #16033: [BEAM-11936] Fix errorprone UnusedVariable in Extensions
TheNeuralBit commented on a change in pull request #16033:
URL: https://github.com/apache/beam/pull/16033#discussion_r758651148
##########
File path: sdks/java/extensions/ml/src/main/java/org/apache/beam/sdk/extensions/ml/BatchRequestForDLP.java
##########
@@ -39,6 +39,8 @@
/** Batches input rows to reduce number of requests sent to Cloud DLP service. */
@Experimental
+// TODO(BEAM-11936): Remove when new version of errorprone is released (2.11.0)
Review comment:
```suggestion
// TODO(BEAM-13271): Remove when new version of errorprone is released (2.11.0)
```
##########
File path: sdks/java/extensions/sketching/src/test/java/org/apache/beam/sdk/extensions/sketching/TDigestQuantilesTest.java
##########
@@ -118,7 +118,7 @@ public void testMergeAccum() {
accums.add(std);
}
TDigestQuantilesFn fn = TDigestQuantilesFn.create(100);
- MergingDigest res = fn.mergeAccumulators(accums);
+ fn.mergeAccumulators(accums);
Review comment:
Hm this actually looks like a bug. It should probably verify something about res (e.g. that it contains everything from accums). Could you try this:
```suggestion
MergingDigest res = fn.mergeAccumulators(accums);
assertThat(res.size(), equals(1000));
```
--
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: github-unsubscribe@beam.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org