gengliangwang commented on code in PR #45578:
URL: https://github.com/apache/spark/pull/45578#discussion_r1529687598


##########
connector/avro/src/test/scala/org/apache/spark/sql/avro/AvroSuite.scala:
##########
@@ -2744,6 +2744,16 @@ abstract class AvroSuite
       }
     }
   }
+
+  test("SPARK-46990: read an empty file where pastSync returns false at EOF") {

Review Comment:
   I am getting error when running this test locally:
   ```
   Caused by: java.util.NoSuchElementException
        at org.apache.avro.file.DataFileStream.next(DataFileStream.java:262)
        at org.apache.avro.file.DataFileStream.next(DataFileStream.java:248)
        at 
org.apache.spark.sql.avro.AvroUtils$RowReader.hasNextRow(AvroUtils.scala:210)
        at 
org.apache.spark.sql.avro.AvroUtils$RowReader.hasNextRow$(AvroUtils.scala:198)
        at 
org.apache.spark.sql.avro.AvroFileFormat$$anon$1.hasNextRow(AvroFileFormat.scala:137)
   ```



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