cloud-fan commented on a change in pull request #29588:
URL: https://github.com/apache/spark/pull/29588#discussion_r480254087



##########
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 in 
`sql/core`

Review comment:
       SparkFunSuite is in core, let's make the comment more general, like 
`accessing the resources 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