tkaymak commented on code in PR #39906:
URL: https://github.com/apache/beam/pull/39906#discussion_r3904059907


##########
runners/spark/src/main/java/org/apache/beam/runners/spark/structuredstreaming/SparkStructuredStreamingPipelineOptions.java:
##########
@@ -39,4 +39,38 @@ public interface SparkStructuredStreamingPipelineOptions 
extends SparkCommonPipe
   boolean getUseActiveSparkSession();
 
   void setUseActiveSparkSession(boolean value);
+
+  @Description(
+      "Watermark delay in milliseconds applied to event timestamps of 
streaming sources "
+          + "(streaming mode only).")
+  @Default.Long(0)
+  long getWatermarkDelayMillis();
+
+  void setWatermarkDelayMillis(long value);
+
+  // Note: deliberately NOT named getMaxRecordsPerBatch. The legacy Spark 
runner's
+  // SparkPipelineOptions already declares Long getMaxRecordsPerBatch(); a 
same-name getter with a
+  // different return type breaks proxy generation for every registered 
PipelineOptions interface.
+  @Description(

Review Comment:
   Good point, the earlier clash was a same name with a different return type, 
identical signatures share the proxy fine. Done in #39952, mirroring the legacy 
declaration exactly with a test locking down that both interfaces read the same 
value.



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