hvanhovell commented on code in PR #48120:
URL: https://github.com/apache/spark/pull/48120#discussion_r1820920104
##########
sql/core/src/test/scala/org/apache/spark/sql/execution/command/DDLSuite.scala:
##########
@@ -2141,7 +2141,8 @@ abstract class DDLSuite extends QueryTest with
DDLSuiteBase {
root = Utils.createTempDir().getCanonicalPath, namePrefix =
"addDirectory")
val testFile = File.createTempFile("testFile", "1", directoryToAdd)
spark.sql(s"ADD FILE $directoryToAdd")
- assert(new
File(SparkFiles.get(s"${directoryToAdd.getName}/${testFile.getName}")).exists())
+ val dirPath = spark.sql("LIST FILE").collect().map(_.getString(0)).head
Review Comment:
Can you try to construct the path instead? This feels a bit too much like a
work around?
--
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]