Github user viirya commented on a diff in the pull request: https://github.com/apache/spark/pull/21980#discussion_r207442765 --- Diff: sql/core/src/main/scala/org/apache/spark/sql/execution/streaming/IncrementalExecution.scala --- @@ -75,14 +75,15 @@ class IncrementalExecution( * with the desired literal */ override lazy val optimizedPlan: LogicalPlan = { - val random = new Random() - sparkSession.sessionState.optimizer.execute(withCachedData) transformAllExpressions { case ts @ CurrentBatchTimestamp(timestamp, _, _) => logInfo(s"Current batch timestamp = $timestamp") ts.toLiteral // SPARK-24896: Set the seed for random number generation in Uuid expressions. - case _: Uuid => Uuid(Some(random.nextLong())) + case _: Uuid => Uuid(Some(Utils.random.nextLong())) --- End diff -- Sounds good. Let me update it accordingly.
--- --------------------------------------------------------------------- To unsubscribe, e-mail: reviews-unsubscr...@spark.apache.org For additional commands, e-mail: reviews-h...@spark.apache.org