beliefer commented on a change in pull request #31619:
URL: https://github.com/apache/spark/pull/31619#discussion_r585283036
##########
File path:
sql/core/src/main/scala/org/apache/spark/sql/execution/datasources/v2/DataSourceRDD.scala
##########
@@ -83,7 +84,7 @@ private class PartitionIterator[T](reader:
PartitionReader[T]) extends Iterator[
override def next(): T = {
if (!hasNext) {
- throw new java.util.NoSuchElementException("End of stream")
+ throw QueryExecutionErrors.endOfStreamError()
Review comment:
> I believe this is already located in `QueryExecutionErrors`.
Oh. I see. But fix the other comments please.
----------------------------------------------------------------
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.
For queries about this service, please contact Infrastructure at:
[email protected]
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]