maropu commented on a change in pull request #29588:
URL: https://github.com/apache/spark/pull/29588#discussion_r480478792



##########
File path: core/src/test/scala/org/apache/spark/SparkFunSuite.scala
##########
@@ -107,6 +108,15 @@ abstract class SparkFunSuite
     getTestResourceFile(file).getCanonicalPath
   }
 
+  protected final def copyAndGetResourceFile(fileName: String, suffix: 
String): File = {
+    val url = 
Thread.currentThread().getContextClassLoader.getResource(fileName)
+    // Copy to avoid URISyntaxException during accessing the resources from 
the dependent module.

Review comment:
       nit: "To avoid illegal accesses to a resource file inside jar 
(`URISyntaxException` might be thrown when accessing it), copy it into a 
temporary one for accessing it from the dependent module."
   




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

Reply via email to