HyukjinKwon commented on code in PR #42462:
URL: https://github.com/apache/spark/pull/42462#discussion_r1299580676
##########
connector/connect/client/jvm/src/main/scala/org/apache/spark/sql/DataFrameReader.scala:
##########
@@ -392,6 +392,46 @@ class DataFrameReader private[sql] (sparkSession:
SparkSession) extends Logging
def csv(csvDataset: Dataset[String]): DataFrame =
parse(csvDataset, ParseFormat.PARSE_FORMAT_CSV)
+ /**
+ * Loads a XML file and returns the result as a `DataFrame`. See the
documentation on the other
+ * overloaded `xml()` method for more details.
+ *
+ * @since 4.0.0
+ */
+ def xml(path: String): DataFrame = {
Review Comment:
FYI, should add it to `DataStreamReader` / `DataStreamWriter`. Same for
Python at `readwriter.py`. Can be done as a followup.
--
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]