eric-maynard commented on code in PR #46408:
URL: https://github.com/apache/spark/pull/46408#discussion_r1595695553
##########
sql/core/src/test/scala/org/apache/spark/sql/execution/datasources/json/JsonSuite.scala:
##########
@@ -3900,26 +3900,26 @@ abstract class JsonSuite
}
}
extractData(
- s"""{"data": {"white": "space"}}""",
- expectedInexactData = Seq(s"""{"white":"space"}"""),
- expectedExactData = Seq(s"""{"white": "space"}""")
+ """{"data": {"white": "space"}}""",
+ expectedInexactData = Seq("""{"white":"space"}"""),
+ expectedExactData = Seq("""{"white": "space"}""")
)
extractData(
- s"""{"data": ["white", "space"]}""",
- expectedInexactData = Seq(s"""["white","space"]"""),
- expectedExactData = Seq(s"""["white", "space"]""")
+ """{"data": ["white", "space"]}""",
+ expectedInexactData = Seq("""["white","space"]"""),
+ expectedExactData = Seq("""["white", "space"]""")
)
val granularFloat = "-999.99999999999999999999999999999999995"
extractData(
s"""{"data": {"v": ${granularFloat}}}""",
- expectedInexactData = Seq(s"""{"v":-1000.0}"""),
+ expectedInexactData = Seq("""{"v":-1000.0}"""),
expectedExactData = Seq(s"""{"v": ${granularFloat}}""")
)
// In multiLine, we fall back to the inexact method:
extractData(
- s"""{"data": {"white":\n"space"}}""",
Review Comment:
This makes `\n` no longer function as a newline here
--
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]