You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository was archived by the owner on Mar 24, 2025. It is now read-only.
We're trying to parse a XML column from a table using the latest version of spark-xml, so we extract that column into a Dataset[String]. We pass the converted dataset to the spark.read.xml() method, however our passed options doesn't seem to be used whenever we pass a Dataset[String], meaning that it ignores our passed options and it falls back to the default ones.
Here's how we convert the extracted column to a Dataset[String] val xmlCol = srcDf.select("XMLRECORD").as[String]
We're trying to parse a XML column from a table using the latest version of spark-xml, so we extract that column into a
Dataset[String]. We pass the converted dataset to thespark.read.xml()method, however our passed options doesn't seem to be used whenever we pass aDataset[String], meaning that it ignores our passed options and it falls back to the default ones.Here's how we convert the extracted column to a
Dataset[String]val xmlCol = srcDf.select("XMLRECORD").as[String]Here's how we call spark-xml
read()method