Github user HyukjinKwon commented on the issue:
https://github.com/apache/spark/pull/17826
Hi @cloud-fan and @brkyvz, just while checking related issues with it just
for my curiosity, I just realised that we are throwing an exception in XML
related expressions as below:
```scala
scala> sql("SELECT xpath_string('<a><b>b</b><c>cc</c></','a/c')").show()
...
java.lang.RuntimeException: Invalid XML document:
org.xml.sax.SAXParseException; lineNumber: 1; columnNumber: 23; XML document
structures must start and end within the same entity.
<a><b>b</b><c>cc</c></
at
org.apache.spark.sql.catalyst.expressions.xml.UDFXPathUtil.eval(UDFXPathUtil.java:72)
at
org.apache.spark.sql.catalyst.expressions.xml.UDFXPathUtil.evalString(UDFXPathUtil.java:81)
at
org.apache.spark.sql.catalyst.expressions.xml.XPathString.nullSafeEval(xpath.scala:186)
...
```
Should we fix these expressions too or just leave them out for now?
---
If your project is set up for it, you can reply to this email and have your
reply appear on GitHub as well. If your project does not have this feature
enabled and wishes so, or if the feature is enabled but not working, please
contact infrastructure at [email protected] or file a JIRA ticket
with INFRA.
---
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]