Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -83,6 +83,7 @@ public void testMetadataPropagationAcrossShuffleParameter() {
@Test
@Category({ValidatesRunner.class, NeedsRunner.class})
public void testMetadataPropagationParameter() {
WindowedValues.WindowedValueCoder.setMetadataSupported();
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

high

The class name should be WindowedValue (singular) and the setMetadataSupported method requires a boolean argument (e.g., true). Additionally, this method is typically called on WindowedValue directly rather than the coder inner class. Note that modifying global static state in a test can lead to side effects in other tests; consider resetting this state after the test execution.

Suggested change
WindowedValues.WindowedValueCoder.setMetadataSupported();
WindowedValue.setMetadataSupported(true);

PCollection<String> results =
pipeline
.apply(Create.of(true))
Expand Down
Loading