beliefer commented on code in PR #43389:
URL: https://github.com/apache/spark/pull/43389#discussion_r1363006078
##########
sql/core/src/test/java/test/org/apache/spark/sql/execution/datasources/xml/JavaXmlSuite.java:
##########
@@ -82,7 +82,7 @@ private Path getEmptyTempDir() throws IOException {
public void testXmlParser() {
Map<String, String> options = new HashMap<>();
options.put("rowTag", booksFileTag);
- Dataset<Row> df =
spark.read().options(options).format("xml").load(booksFile);
+ Dataset<Row> df = spark.read().options(options).xml(booksFile);
Review Comment:
Because this change is not related to the theme, it is not recommended to
modify it. But it does simplify the code a bit and is also OK.
--
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]