<?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: How do I create an impala table in an avro file that already has a map type? in Archives of Support Questions (Read Only)</title>
    <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/How-do-I-create-an-impala-table-in-an-avro-file-that-already/m-p/83168#M85233</link>
    <description>&lt;P&gt;Impala checks the file formats &lt;A href="https://github.com/cloudera/Impala/blob/cdh5-2.12.0_5.16.1/fe/src/main/java/org/apache/impala/planner/HdfsScanNode.java#L375" target="_self"&gt;here&lt;/A&gt; based on this &lt;A href="https://github.com/cloudera/Impala/blob/cdh5-2.12.0_5.16.1/fe/src/main/java/org/apache/impala/catalog/HdfsFileFormat.java#L29" target="_self"&gt;enumeration&lt;/A&gt;. Currently skipping complex columns in scans is not supported for Avro.&lt;/P&gt;</description>
    <pubDate>Mon, 03 Dec 2018 17:01:59 GMT</pubDate>
    <dc:creator>tmater</dc:creator>
    <dc:date>2018-12-03T17:01:59Z</dc:date>
    <item>
      <title>How do I create an impala table in an avro file that already has a map type?</title>
      <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/How-do-I-create-an-impala-table-in-an-avro-file-that-already/m-p/82948#M85232</link>
      <description>&lt;P&gt;Saved avro file's(raw data files, collect by flume) schema contains map type.&lt;/P&gt;
&lt;P&gt;I want to create table using it.&lt;/P&gt;
&lt;P&gt;I know Impala not support map type.&lt;/P&gt;
&lt;P&gt;&lt;A href="https://www.cloudera.com/documentation/enterprise/5-6-x/topics/impala_avro.html#avro_map_table" target="_blank"&gt;https://www.cloudera.com/documentation/enterprise/5-6-x/topics/impala_avro.html#avro_map_table&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;So, I removed the map type from the avro schema.( map type column remove )&lt;/P&gt;
&lt;P&gt;Avro files still has map type data.&lt;/P&gt;
&lt;P&gt;And, I create Hive and Impala table.&lt;/P&gt;
&lt;P&gt;And, add partitions.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Hive table have rows.&lt;/P&gt;
&lt;P&gt;But Impala no have rows.&lt;/P&gt;
&lt;P&gt;Impala table query raise exception(complex type).&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;How do I create an impala table in an avro file(raw data) that already has a map type?&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 16 Sep 2022 13:56:08 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Archives-of-Support-Questions/How-do-I-create-an-impala-table-in-an-avro-file-that-already/m-p/82948#M85232</guid>
      <dc:creator>avengers</dc:creator>
      <dc:date>2022-09-16T13:56:08Z</dc:date>
    </item>
    <item>
      <title>Re: How do I create an impala table in an avro file that already has a map type?</title>
      <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/How-do-I-create-an-impala-table-in-an-avro-file-that-already/m-p/83168#M85233</link>
      <description>&lt;P&gt;Impala checks the file formats &lt;A href="https://github.com/cloudera/Impala/blob/cdh5-2.12.0_5.16.1/fe/src/main/java/org/apache/impala/planner/HdfsScanNode.java#L375" target="_self"&gt;here&lt;/A&gt; based on this &lt;A href="https://github.com/cloudera/Impala/blob/cdh5-2.12.0_5.16.1/fe/src/main/java/org/apache/impala/catalog/HdfsFileFormat.java#L29" target="_self"&gt;enumeration&lt;/A&gt;. Currently skipping complex columns in scans is not supported for Avro.&lt;/P&gt;</description>
      <pubDate>Mon, 03 Dec 2018 17:01:59 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Archives-of-Support-Questions/How-do-I-create-an-impala-table-in-an-avro-file-that-already/m-p/83168#M85233</guid>
      <dc:creator>tmater</dc:creator>
      <dc:date>2018-12-03T17:01:59Z</dc:date>
    </item>
  </channel>
</rss>

