panbingkun commented on PR #41271:
URL: https://github.com/apache/spark/pull/41271#issuecomment-1560355918

   @dongjoon-hyun @LuciferYang 
   In fact, there is a problem with this UT. Its original intention was to test 
if there is no file with `.avro` extensions in the directory, and the read 
should fail. However, this UT triggered the error as `FileUtils.touch` instead 
of `spark.read.format("avro").load(dir.toString)`. 
   
   After this PR is completed, I will submit a new PR to fix this issue.
   
   The root cause for the failure of this case is that the parent directory was 
not created. When FileUtils.touch is called in version 1.11.0, it just throws 
`java.io.FileNotFoundException`, which covers the error.
   


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