Github user dongjoon-hyun commented on the issue:
https://github.com/apache/spark/pull/15789
Oh, you mean the the following. I'll fix this PR again. Sorry, @gatorsmile .
```scala
private val baseResourcePath = {
// If regenerateGoldenFiles is true, we must be running this in SBT and
we use hard-coded
// relative path. Otherwise, we use classloader's getResource to find
the location.
if (regenerateGoldenFiles) {
java.nio.file.Paths.get("src", "test", "resources",
"sql-tests").toFile
} else {
val res = getClass.getClassLoader.getResource("sql-tests")
new File(res.getFile)
}
}
```
---
If your project is set up for it, you can reply to this email and have your
reply appear on GitHub as well. If your project does not have this feature
enabled and wishes so, or if the feature is enabled but not working, please
contact infrastructure at [email protected] or file a JIRA ticket
with INFRA.
---
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]