You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@spark.apache.org by "Hyukjin Kwon (Jira)" <ji...@apache.org> on 2024/04/16 03:17:00 UTC

[jira] [Resolved] (SPARK-47371) XML: Ignore row tags in CDATA Tokenizer

     [ https://issues.apache.org/jira/browse/SPARK-47371?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Hyukjin Kwon resolved SPARK-47371.
----------------------------------
    Fix Version/s: 4.0.0
       Resolution: Fixed

Issue resolved by pull request 45487
[https://github.com/apache/spark/pull/45487]

> XML: Ignore row tags in CDATA Tokenizer
> ---------------------------------------
>
>                 Key: SPARK-47371
>                 URL: https://issues.apache.org/jira/browse/SPARK-47371
>             Project: Spark
>          Issue Type: Sub-task
>          Components: SQL
>    Affects Versions: 4.0.0
>            Reporter: Yousof Hosny
>            Assignee: Yousof Hosny
>            Priority: Minor
>              Labels: pull-request-available
>             Fix For: 4.0.0
>
>
> The current parser does not recognize CDATA sections and thus will read row tags that are enclosed within a CDATA section. The expected behavior is for none of the following rows to be read, but they are all read. 
> {code:java}
> // BUG:  rowTag in CDATA section
> val xmlString="""<?xml version="1.0" encoding="UTF-8" ?>
> <test><![CDATA[
>     <elem id="1" />
>     <elem id="2" > </elem>
>     <elem> <id>3</id> </elem>
> ]]>
> </test>
> {code}
>  



--
This message was sent by Atlassian Jira
(v8.20.10#820010)

---------------------------------------------------------------------
To unsubscribe, e-mail: issues-unsubscribe@spark.apache.org
For additional commands, e-mail: issues-help@spark.apache.org