LuciferYang commented on code in PR #44179: URL: https://github.com/apache/spark/pull/44179#discussion_r1415496286
########## sql/core/src/main/scala/org/apache/spark/sql/execution/streaming/CompactibleFileStreamLog.scala: ########## @@ -388,7 +388,7 @@ object CompactibleFileStreamLog { } else if (defaultInterval < (latestCompactBatchId + 1) / 2) { // Find the first divisor >= default compact interval def properDivisors(min: Int, n: Int) = - (min to n/2).view.filter(i => n % i == 0).toSeq :+ n + (min to n / 2).to(LazyList).filter(i => n % i == 0) :+ n Review Comment: @yaooqinn https://github.com/apache/spark/pull/15852/files#diff-ed29e1893fa3939724b333684e1f6037358b3d7edce1e3663afdda8d99002fed ![image](https://github.com/apache/spark/assets/1475305/03e8f4dc-cada-48de-8d8d-206ad1dc6d83) seems that the initial intention here was also to use a lazy view, test `LazyList` -- 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: reviews-unsubscr...@spark.apache.org For queries about this service, please contact Infrastructure at: us...@infra.apache.org --------------------------------------------------------------------- To unsubscribe, e-mail: reviews-unsubscr...@spark.apache.org For additional commands, e-mail: reviews-h...@spark.apache.org