sandip-db commented on code in PR #45379:
URL: https://github.com/apache/spark/pull/45379#discussion_r1513205680
##########
sql/core/src/test/scala/org/apache/spark/sql/execution/datasources/xml/XmlSuite.scala:
##########
@@ -1302,6 +1302,22 @@ class XmlSuite
assert(result.select("decoded._corrupt_record").head().getString(0).nonEmpty)
}
+ test("schema_of_xml parse error test") {
+ val e = intercept[AnalysisException] {
+ spark.sql(s"""SELECT schema_of_xml('<ROW><a>1<ROW>', map('mode',
'DROPMALFORMED'))""")
Review Comment:
can you please add permissive and failfast mode scenarios as well in this
test? Thanks.
--
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]