<?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: Impala does not not support reserved words in complex types in Support Questions</title>
    <link>https://community.cloudera.com/t5/Support-Questions/Impala-does-not-not-support-reserved-words-in-complex-types/m-p/35942#M15825</link>
    <description>&lt;P&gt;Hi!&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I confirm that this is a problem in Impala 2.3. It stems from the fact that the type is stored as a string inside the Hive Metastore, and upon table loading, Impala parses the string into an internal representation. However, the types stored inside the Metastore are not quoted, so Impala fails to parse the reserved words.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Would you mind filing a JIRA for this&amp;nbsp;&lt;A href="https://issues.cloudera.org" target="_blank"&gt;https://issues.cloudera.org&lt;/A&gt; with the info you provided below and my response above?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks!&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Alex&lt;/P&gt;</description>
    <pubDate>Thu, 07 Jan 2016 16:55:57 GMT</pubDate>
    <dc:creator>alex.behm</dc:creator>
    <dc:date>2016-01-07T16:55:57Z</dc:date>
    <item>
      <title>Impala does not not support reserved words in complex types</title>
      <link>https://community.cloudera.com/t5/Support-Questions/Impala-does-not-not-support-reserved-words-in-complex-types/m-p/35937#M15824</link>
      <description>&lt;P&gt;I have been testing CDH5.5.0 and have noted that Impala does not like reserved words as field names in complex types. This seems strange as reserved words can be used as column names for ordinary columns. Hive does not impose the same restriction. Reserved words can be back-ticked where needed.&lt;BR /&gt;&lt;BR /&gt;Does anybody know if this is by design or if this is an issue in Impala 2.3.0?&lt;BR /&gt;&lt;BR /&gt;We are using Hive to create Parquet files with complex types. Sample to reproduce issue and error message below. In the case below the word 'replace' is reserved.&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;In Hive:&lt;/P&gt;&lt;PRE&gt;CREATE EXTERNAL TABLE MyTable (
  device_id STRING,
  added struct&amp;lt;name:string,version_name:string,version_code:int,`replace`:boolean&amp;gt;
)
STORED AS PARQUET
LOCATION '/tmp/impala/mytable'; &lt;/PRE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;In Hive:&lt;/P&gt;&lt;PRE&gt;INSERT OVERWRITE TABLE MyTable
SELECT  
  device_id,
  payload AS added
FROM Added where import_id = 106000;&lt;/PRE&gt;&lt;P&gt;&amp;nbsp;&lt;BR /&gt;In Impala:&lt;/P&gt;&lt;PRE&gt;SELECT * FROM MyTable limit 10;&lt;/PRE&gt;&lt;P&gt;&lt;BR /&gt;Output:&lt;/P&gt;&lt;PRE&gt;AnalysisException: Failed to load metadata for table: 'mytable' CAUSED BY: TableLoadingException: Unsupported type 'struct&amp;lt;name:string,version_name:string,version_code:int,replace:boolean&amp;gt;' in column 'added' of table 'mytable'  


I0107 15:56:01.251721 21006 Frontend.java:818] analyze query SELECT * FROM MyTable limit 10
E0107 15:56:01.252320 21006 Analyzer.java:2212] Failed to load metadata for table: mytable
Unsupported type 'struct&amp;lt;name:string,version_name:string,version_code:int,replace:boolean&amp;gt;' in column 'added' of table 'mytable'
I0107 15:56:01.252908 21006 jni-util.cc:177] com.cloudera.impala.common.AnalysisException: Failed to load metadata for table: 'MyTable'
        at com.cloudera.impala.analysis.TableRef.analyze(TableRef.java:180)
        at com.cloudera.impala.analysis.Analyzer.resolveTableRef(Analyzer.java:512)
        at com.cloudera.impala.analysis.SelectStmt.analyze(SelectStmt.java:155)
        at com.cloudera.impala.analysis.AnalysisContext.analyze(AnalysisContext.java:342)
        at com.cloudera.impala.analysis.AnalysisContext.analyze(AnalysisContext.java:317)
        at com.cloudera.impala.service.Frontend.analyzeStmt(Frontend.java:827)
        at com.cloudera.impala.service.Frontend.createExecRequest(Frontend.java:856)
        at com.cloudera.impala.service.JniFrontend.createExecRequest(JniFrontend.java:147)
Caused by: com.cloudera.impala.catalog.TableLoadingException: Unsupported type 'struct&amp;lt;name:string,version_name:string,version_code:int,replace:boolean&amp;gt;' in column 'added' of table 'mytable'
        at com.cloudera.impala.catalog.IncompleteTable.loadFromThrift(IncompleteTable.java:111)
        at com.cloudera.impala.catalog.Table.fromThrift(Table.java:240)
        at com.cloudera.impala.catalog.ImpaladCatalog.addTable(ImpaladCatalog.java:357)
        at com.cloudera.impala.catalog.ImpaladCatalog.addCatalogObject(ImpaladCatalog.java:246)
        at com.cloudera.impala.catalog.ImpaladCatalog.updateCatalog(ImpaladCatalog.java:132)
        at com.cloudera.impala.service.Frontend.updateCatalogCache(Frontend.java:223)
        at com.cloudera.impala.service.JniFrontend.updateCatalogCache(JniFrontend.java:164)
        at ========.&amp;lt;Remote stack trace on catalogd&amp;gt;: com.cloudera.impala.catalog.TableLoadingException: Unsupported type 'struct&amp;lt;name:string,version_name:string,version_code:int,replace:boolean&amp;gt;' in column 'added' of table 'mytable'
        at com.cloudera.impala.catalog.Table.parseColumnType(Table.java:331)
        at com.cloudera.impala.catalog.HdfsTable.addColumnsFromFieldSchemas(HdfsTable.java:571)
        at com.cloudera.impala.catalog.HdfsTable.load(HdfsTable.java:1073)
        at com.cloudera.impala.catalog.TableLoader.load(TableLoader.java:84)
        at com.cloudera.impala.catalog.TableLoadingMgr$2.call(TableLoadingMgr.java:232)
        at com.cloudera.impala.catalog.TableLoadingMgr$2.call(TableLoadingMgr.java:229)
        at java.util.concurrent.FutureTask.run(FutureTask.java:262)
        at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1145)
        at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:615)
        at java.lang.Thread.run(Thread.java:745)&lt;/PRE&gt;</description>
      <pubDate>Fri, 16 Sep 2022 09:56:13 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Support-Questions/Impala-does-not-not-support-reserved-words-in-complex-types/m-p/35937#M15824</guid>
      <dc:creator>Pettax</dc:creator>
      <dc:date>2022-09-16T09:56:13Z</dc:date>
    </item>
    <item>
      <title>Re: Impala does not not support reserved words in complex types</title>
      <link>https://community.cloudera.com/t5/Support-Questions/Impala-does-not-not-support-reserved-words-in-complex-types/m-p/35942#M15825</link>
      <description>&lt;P&gt;Hi!&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I confirm that this is a problem in Impala 2.3. It stems from the fact that the type is stored as a string inside the Hive Metastore, and upon table loading, Impala parses the string into an internal representation. However, the types stored inside the Metastore are not quoted, so Impala fails to parse the reserved words.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Would you mind filing a JIRA for this&amp;nbsp;&lt;A href="https://issues.cloudera.org" target="_blank"&gt;https://issues.cloudera.org&lt;/A&gt; with the info you provided below and my response above?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks!&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Alex&lt;/P&gt;</description>
      <pubDate>Thu, 07 Jan 2016 16:55:57 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Support-Questions/Impala-does-not-not-support-reserved-words-in-complex-types/m-p/35942#M15825</guid>
      <dc:creator>alex.behm</dc:creator>
      <dc:date>2016-01-07T16:55:57Z</dc:date>
    </item>
    <item>
      <title>Re: Impala does not not support reserved words in complex types</title>
      <link>https://community.cloudera.com/t5/Support-Questions/Impala-does-not-not-support-reserved-words-in-complex-types/m-p/35948#M15826</link>
      <description>&lt;P&gt;Thank you Alex for your quick reply and confirmation!&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I've created &lt;A href="https://issues.cloudera.org/browse/IMPALA-2820" target="_self"&gt;IMPALA-2820&lt;/A&gt;&amp;nbsp;to track this issue.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 07 Jan 2016 18:36:28 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Support-Questions/Impala-does-not-not-support-reserved-words-in-complex-types/m-p/35948#M15826</guid>
      <dc:creator>Pettax</dc:creator>
      <dc:date>2016-01-07T18:36:28Z</dc:date>
    </item>
    <item>
      <title>Re: Impala does not not support reserved words in complex types</title>
      <link>https://community.cloudera.com/t5/Support-Questions/Impala-does-not-not-support-reserved-words-in-complex-types/m-p/35962#M15827</link>
      <description>&lt;P&gt;Thanks for reporting this issue and filing a JIRA! Much appreciated &lt;span class="lia-unicode-emoji" title=":winking_face:"&gt;😉&lt;/span&gt;&lt;/P&gt;</description>
      <pubDate>Thu, 07 Jan 2016 19:49:48 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Support-Questions/Impala-does-not-not-support-reserved-words-in-complex-types/m-p/35962#M15827</guid>
      <dc:creator>alex.behm</dc:creator>
      <dc:date>2016-01-07T19:49:48Z</dc:date>
    </item>
    <item>
      <title>Re: Impala does not not support reserved words in complex types</title>
      <link>https://community.cloudera.com/t5/Support-Questions/Impala-does-not-not-support-reserved-words-in-complex-types/m-p/35967#M15828</link>
      <description>&lt;P&gt;What a coinsidence! I've reported the same issue 1 hour after you &lt;span class="lia-unicode-emoji" title=":slightly_smiling_face:"&gt;🙂&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&lt;A href="https://issues.cloudera.org/browse/IMPALA-2821" target="_blank"&gt;https://issues.cloudera.org/browse/IMPALA-2821&lt;/A&gt;&lt;/P&gt;</description>
      <pubDate>Thu, 07 Jan 2016 21:24:08 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Support-Questions/Impala-does-not-not-support-reserved-words-in-complex-types/m-p/35967#M15828</guid>
      <dc:creator>epishkin</dc:creator>
      <dc:date>2016-01-07T21:24:08Z</dc:date>
    </item>
    <item>
      <title>Re: Impala does not not support reserved words in complex types</title>
      <link>https://community.cloudera.com/t5/Support-Questions/Impala-does-not-not-support-reserved-words-in-complex-types/m-p/35968#M15829</link>
      <description>&lt;P&gt;&lt;SPAN&gt;Ah,&amp;nbsp;&lt;/SPAN&gt;&lt;SPAN&gt;m&lt;/SPAN&gt;&lt;SPAN&gt;ore information for the team to work with then! Let's hope for a solution.&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Thu, 07 Jan 2016 21:38:03 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Support-Questions/Impala-does-not-not-support-reserved-words-in-complex-types/m-p/35968#M15829</guid>
      <dc:creator>Pettax</dc:creator>
      <dc:date>2016-01-07T21:38:03Z</dc:date>
    </item>
    <item>
      <title>Re: Impala does not not support reserved words in complex types</title>
      <link>https://community.cloudera.com/t5/Support-Questions/Impala-does-not-not-support-reserved-words-in-complex-types/m-p/35975#M15830</link>
      <description>&lt;P&gt;Yea :). Thanks everyone for your reports and JIRA contricutions!&lt;/P&gt;</description>
      <pubDate>Fri, 08 Jan 2016 01:23:30 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Support-Questions/Impala-does-not-not-support-reserved-words-in-complex-types/m-p/35975#M15830</guid>
      <dc:creator>alex.behm</dc:creator>
      <dc:date>2016-01-08T01:23:30Z</dc:date>
    </item>
  </channel>
</rss>

