sandip-db commented on code in PR #43455:
URL: https://github.com/apache/spark/pull/43455#discussion_r1366297384
##########
sql/catalyst/src/main/scala/org/apache/spark/sql/catalyst/xml/XmlOptions.scala:
##########
@@ -66,9 +66,9 @@ private[sql] class XmlOptions(
}
val compressionCodec =
parameters.get(COMPRESSION).map(CompressionCodecs.getCodecClassName)
- val rowTagOpt = parameters.get(XmlOptions.ROW_TAG)
+ val rowTagOpt = parameters.get(XmlOptions.ROW_TAG).map(_.trim)
require(!rowTagRequired || rowTagOpt.isDefined, s"'${XmlOptions.ROW_TAG}'
option is required.")
Review Comment:
I added it as part of my last
[PR](https://github.com/apache/spark/pull/43416/files). This is because
`rowTag` is required only for file read/write (`XmlFIleFormat`) and ignored by
`from_xml`, `schema_of_xml` and `DataFrameReader.xml` that takes `Dataset` as
argument.
--
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]