harshilv17 commented on code in PR #41734:
URL: https://github.com/apache/beam/pull/41734#discussion_r4726637820


##########
sdks/java/core/src/main/java/org/apache/beam/sdk/testing/PAssert.java:
##########
@@ -1324,6 +1324,12 @@ public Void apply(T actual) {
   private static class GroupGlobally<T>
       extends PTransform<PCollection<T>, 
PCollection<Iterable<ValueInSingleWindow<T>>>>
       implements Serializable {
+    /**
+     * The single key all elements are grouped under so the assertion sees 
them together. Its value
+     * has no meaning.
+     */
+    private static final int SINGLETON_KEY = 42;

Review Comment:
   Good point, the value is what shows up in the elements. Changed in the 
latest commit: `SINGLETON_KEY` is now the string `"PAssert-global-key"` and 
`GroupGlobally` uses `KV<String, ...>` throughout. `PAssertTest` (including its 
26 NeedsRunner tests on the direct runner) passes.
   



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