<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>question Re: Will impala support xml data type? in Archives of Support Questions (Read Only)</title>
    <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/Will-impala-support-xml-data-type/m-p/24865#M4479</link>
    <description>&lt;P&gt;&lt;SPAN&gt;I got this from one of our engineers:&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;Impala doesn't support xml natively. Instead can you convert the xml data into one of the supported formats [1] using hive and work with them from impala.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;You can probably use hive to create XML based tables using xml serde [2] and then use hive to convert the data to avro based table using "insert overwrite avro_table select * from xml_table". Just make sure you create the avro_table using the avro serde and hive's insert overwrite takes care of format conversion. Btw this xml serde [2] is a third party package that we didn't test with CDH. You can probably give it a try. &lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;[1] &lt;A href="http://www.cloudera.com/content/cloudera/en/documentation/core/latest/topics/impala_file_formats.html" target="_blank"&gt;http://www.cloudera.com/content/cloudera/en/documentation/core/latest/topics/impala_file_formats.html&lt;/A&gt; &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;[2] &lt;A href="https://github.com/dvasilen/Hive-XML-SerDe" target="_blank"&gt;https://github.com/dvasilen/Hive-XML-SerDe&lt;/A&gt;&lt;/SPAN&gt;&lt;/P&gt;</description>
    <pubDate>Thu, 19 Feb 2015 22:41:51 GMT</pubDate>
    <dc:creator>Clint</dc:creator>
    <dc:date>2015-02-19T22:41:51Z</dc:date>
    <item>
      <title>Will impala support xml data type?</title>
      <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/Will-impala-support-xml-data-type/m-p/23342#M4478</link>
      <description>&lt;P&gt;Anybody has an experience how to process xml data (imported from MSSQL) and how to store and analyze them in Impala?&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;&lt;P&gt;Tomas&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 16 Sep 2022 09:17:50 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Archives-of-Support-Questions/Will-impala-support-xml-data-type/m-p/23342#M4478</guid>
      <dc:creator>TomasTF</dc:creator>
      <dc:date>2022-09-16T09:17:50Z</dc:date>
    </item>
    <item>
      <title>Re: Will impala support xml data type?</title>
      <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/Will-impala-support-xml-data-type/m-p/24865#M4479</link>
      <description>&lt;P&gt;&lt;SPAN&gt;I got this from one of our engineers:&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;Impala doesn't support xml natively. Instead can you convert the xml data into one of the supported formats [1] using hive and work with them from impala.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;You can probably use hive to create XML based tables using xml serde [2] and then use hive to convert the data to avro based table using "insert overwrite avro_table select * from xml_table". Just make sure you create the avro_table using the avro serde and hive's insert overwrite takes care of format conversion. Btw this xml serde [2] is a third party package that we didn't test with CDH. You can probably give it a try. &lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;[1] &lt;A href="http://www.cloudera.com/content/cloudera/en/documentation/core/latest/topics/impala_file_formats.html" target="_blank"&gt;http://www.cloudera.com/content/cloudera/en/documentation/core/latest/topics/impala_file_formats.html&lt;/A&gt; &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;[2] &lt;A href="https://github.com/dvasilen/Hive-XML-SerDe" target="_blank"&gt;https://github.com/dvasilen/Hive-XML-SerDe&lt;/A&gt;&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Thu, 19 Feb 2015 22:41:51 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Archives-of-Support-Questions/Will-impala-support-xml-data-type/m-p/24865#M4479</guid>
      <dc:creator>Clint</dc:creator>
      <dc:date>2015-02-19T22:41:51Z</dc:date>
    </item>
  </channel>
</rss>

