Github user magpierre commented on the pull request:
https://github.com/apache/drill/pull/451#issuecomment-214733518
I recently got a tip from the drill dev team to use the UNION TYPE which is
working great (but needs some code change so possibly this pull request should
be closed and reopened at a later stage) and greatly simplifies the "format"
that needs to be produced in order to store XML in JSON format, but the
DRILL-4437 commit closes the possibility to use UNION_TYPE, and read Number as
double when embedding JSON. Both of which have proved to be essential to
support XML in JSON. Here's an example of the format created by the XML parser
when doing select * on the drill root pom file. (when simplified thanks to the
union type being available, which is far cleaner and leaner)
[test.json.zip](https://github.com/apache/drill/files/236604/test.json.zip)
---
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.
---