Skip to content

Commit

Permalink
Update sql/catalyst/src/test/scala/org/apache/spark/sql/catalyst/cata…
Browse files Browse the repository at this point in the history
…log/ExternalCatalogSuite.scala

Co-authored-by: Hyukjin Kwon <[email protected]>
  • Loading branch information
MaxGekk and HyukjinKwon authored Dec 14, 2020
1 parent 4a9abab commit e9a6133
Showing 1 changed file with 1 addition and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -992,9 +992,7 @@ abstract class CatalogTestUtils {
def newUriForDatabase(): URI = new URI(Utils.createTempDir().toURI.toString.stripSuffix("/"))

def newUriForPartition(parts: Seq[String]): URI = {
val path = parts.foldLeft(Utils.createTempDir()) {
case (parent, part) => new java.io.File(parent, part)
}
val path = parts.foldLeft(Utils.createTempDir())(new java.io.File(_, _))
new URI(path.toURI.toString.stripSuffix("/"))
}

Expand Down

0 comments on commit e9a6133

Please sign in to comment.