Skip to content

Commit d6e9160

Browse files
committed
Resolve the diff with master (Utils to TestUtils)
1 parent 4835632 commit d6e9160

File tree

1 file changed

+2
-1
lines changed
  • sql/core/src/test/scala/org/apache/spark/sql/execution/datasources/text

1 file changed

+2
-1
lines changed

sql/core/src/test/scala/org/apache/spark/sql/execution/datasources/text/TextSuite.scala

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,6 +24,7 @@ import java.nio.file.Files
2424
import org.apache.hadoop.io.SequenceFile.CompressionType
2525
import org.apache.hadoop.io.compress.GzipCodec
2626

27+
import org.apache.spark.TestUtils
2728
import org.apache.spark.sql.{AnalysisException, DataFrame, QueryTest, Row, SaveMode}
2829
import org.apache.spark.sql.internal.SQLConf
2930
import org.apache.spark.sql.test.SharedSQLContext
@@ -192,7 +193,7 @@ class TextSuite extends QueryTest with SharedSQLContext {
192193
withTempPath { path =>
193194
values.toDF().coalesce(1)
194195
.write.option("lineSep", lineSep).text(path.getAbsolutePath)
195-
val partFile = Utils.recursiveList(path).filter(f => f.getName.startsWith("part-")).head
196+
val partFile = TestUtils.recursiveList(path).filter(f => f.getName.startsWith("part-")).head
196197
val readBack = new String(Files.readAllBytes(partFile.toPath), StandardCharsets.UTF_8)
197198
assert(readBack === s"a${lineSep}b${lineSep}\nc${lineSep}")
198199
}

0 commit comments

Comments
 (0)