You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@drill.apache.org by "James Turton (Jira)" <ji...@apache.org> on 2021/08/02 10:14:00 UTC
[jira] [Comment Edited] (DRILL-7979) Self-Closing XML Tags Cause
Schema Change Exceptions
[ https://issues.apache.org/jira/browse/DRILL-7979?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17391300#comment-17391300 ]
James Turton edited comment on DRILL-7979 at 8/2/21, 10:13 AM:
---------------------------------------------------------------
Could returning an empty map when a self-closing tag is encountered work, rather than silently swallowing data?
was (Author: dzamo):
Could returning an empty map when a self-closing tag is encountered work, and not silently swallow data?
> Self-Closing XML Tags Cause Schema Change Exceptions
> ----------------------------------------------------
>
> Key: DRILL-7979
> URL: https://issues.apache.org/jira/browse/DRILL-7979
> Project: Apache Drill
> Issue Type: Bug
> Components: Storage - Other
> Affects Versions: 1.19.0
> Reporter: Charles Givre
> Assignee: Charles Givre
> Priority: Major
> Fix For: 1.20.0
>
>
> Self closing XML tags are dealt with strangely by java's streaming parser. If you have data where you have one row containing a self closing XML tag foo (<foo/>) but then in the next row `foo` contains a map or other nested field, Drill will throw a schema change exception.
> This proposed fix causes Drill to ignore self-closing tags unless they have attributes, which allows data like this to be successfully queried.
>
--
This message was sent by Atlassian Jira
(v8.3.4#803005)