Skip to content

Commit

Permalink
Fix line length
Browse files Browse the repository at this point in the history
  • Loading branch information
srowen committed Sep 30, 2021
1 parent 1112822 commit 2754da8
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion src/test/scala/com/databricks/spark/xml/XmlSuite.scala
Original file line number Diff line number Diff line change
Expand Up @@ -1233,7 +1233,10 @@ final class XmlSuite extends AnyFunSuite with BeforeAndAfterAll {
test("rootTag with simple attributes") {
val xmlPath = getEmptyTempDir().resolve("simple_attributes")
val df = spark.createDataFrame(Seq((42, "foo"))).toDF("number", "value").repartition(1)
df.write.option("rootTag", "root foo='bar' bing=\"baz\"").option("declaration", "").xml(xmlPath.toString)
df.write.
option("rootTag", "root foo='bar' bing=\"baz\"").
option("declaration", "").
xml(xmlPath.toString)

val xmlFile =
Files.list(xmlPath).iterator.asScala.filter(_.getFileName.toString.startsWith("part-")).next()
Expand Down

0 comments on commit 2754da8

Please sign in to comment.