sahnib commented on code in PR #45376:
URL: https://github.com/apache/spark/pull/45376#discussion_r1575062777


##########
sql/core/src/main/scala/org/apache/spark/sql/execution/streaming/EventTimeWatermarkExec.scala:
##########
@@ -129,3 +129,37 @@ case class EventTimeWatermarkExec(
   override protected def withNewChildInternal(newChild: SparkPlan): 
EventTimeWatermarkExec =
     copy(child = newChild)
 }
+
+case class UpdateEventTimeColumnExec(
+    eventTime: Attribute,
+    delay: CalendarInterval,
+    child: SparkPlan) extends UnaryExecNode {
+
+  val delayMs = EventTimeWatermark.getDelayMs(delay)
+  override protected def doExecute(): RDD[InternalRow] = {
+    child.execute()
+  }
+
+  // Update the metadata on the eventTime column to include the desired delay.
+  override val output: Seq[Attribute] = child.output.map { a =>

Review Comment:
   Done. Consolidated the Exec and logical operator code duplication as well. 



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


---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to