cloud-fan commented on code in PR #37743: URL: https://github.com/apache/spark/pull/37743#discussion_r972131446
########## sql/core/src/main/scala/org/apache/spark/sql/execution/datasources/v2/DataSourceRDD.scala: ########## @@ -111,12 +111,16 @@ private class PartitionIterator[T]( reader: PartitionReader[T], customMetrics: Map[String, SQLMetric]) extends Iterator[T] { private[this] var valuePrepared = false + private[this] var prevHasNext = true private var numRow = 0L override def hasNext: Boolean = { if (!valuePrepared) { Review Comment: can you follow the change in https://github.com/apache/spark/pull/37900/files ? It can avoid entering this if branch entirely. -- 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