<?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: Hive: Query keyword column name in Support Questions</title>
    <link>https://community.cloudera.com/t5/Support-Questions/Hive-Query-keyword-column-name/m-p/173686#M135952</link>
    <description>&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;After doing "&lt;STRONG&gt;set hive.support.sql11.reserved.keywords=false&lt;/STRONG&gt;", it allows to query the column with the keyword.&lt;/P&gt;&lt;P&gt;When using &lt;STRONG&gt;back quotes&lt;/STRONG&gt;, it gives the following error:&lt;/P&gt;&lt;P&gt;select `header.timestamp` from avro_test_channel;&lt;/P&gt;&lt;P&gt;FAILED: SemanticException [Error 10004]: Line 1:7 Invalid table alias or column reference 'header.timestamp': (possible column names are:&lt;/P&gt;</description>
    <pubDate>Sun, 20 Nov 2016 07:55:19 GMT</pubDate>
    <dc:creator>ashsskum</dc:creator>
    <dc:date>2016-11-20T07:55:19Z</dc:date>
    <item>
      <title>Hive: Query keyword column name</title>
      <link>https://community.cloudera.com/t5/Support-Questions/Hive-Query-keyword-column-name/m-p/173683#M135949</link>
      <description>&lt;P&gt;Have an external HIVE table that is based on an avro files and one of the column description is as below.  When trying to do SELECT on that with &lt;U&gt;header.timestamp&lt;/U&gt;, it fails with the error below.  Is there way to query columns with the keywords?&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&lt;U&gt;col_name&lt;/U&gt;&lt;/STRONG&gt;       &lt;STRONG&gt;&lt;U&gt;data_type&lt;/U&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt; header            struct&amp;lt;versionnum:binary, &lt;STRONG&gt;timestamp&lt;/STRONG&gt;:bigint,uuid:binary&amp;gt;    &lt;/P&gt;&lt;P&gt;&lt;U&gt;Error:&lt;/U&gt;&lt;/P&gt;&lt;P&gt;Error while compiling statement: FAILED: ParseException line 1:80 Failed to recognize predicate 'timestamp'. Failed rule: 'identifier' in expression specification&lt;/P&gt;</description>
      <pubDate>Sun, 13 Nov 2016 06:45:35 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Support-Questions/Hive-Query-keyword-column-name/m-p/173683#M135949</guid>
      <dc:creator>ashsskum</dc:creator>
      <dc:date>2016-11-13T06:45:35Z</dc:date>
    </item>
    <item>
      <title>Re: Hive: Query keyword column name</title>
      <link>https://community.cloudera.com/t5/Support-Questions/Hive-Query-keyword-column-name/m-p/173684#M135950</link>
      <description>&lt;P&gt;Hi Kumar,&lt;/P&gt;&lt;P&gt;Please check this &lt;A href="https://issues.apache.org/jira/browse/HIVE-10294" target="_blank"&gt;https://issues.apache.org/jira/browse/HIVE-10294&lt;/A&gt;&lt;/P&gt;</description>
      <pubDate>Mon, 14 Nov 2016 02:24:50 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Support-Questions/Hive-Query-keyword-column-name/m-p/173684#M135950</guid>
      <dc:creator>maheshmsh88</dc:creator>
      <dc:date>2016-11-14T02:24:50Z</dc:date>
    </item>
    <item>
      <title>Re: Hive: Query keyword column name</title>
      <link>https://community.cloudera.com/t5/Support-Questions/Hive-Query-keyword-column-name/m-p/173685#M135951</link>
      <description>&lt;A rel="user" href="https://community.cloudera.com/users/11738/ashsskum.html" nodeid="11738"&gt;@Kumar&lt;/A&gt;&lt;P&gt;Try using back ticks &lt;STRONG&gt;` &lt;/STRONG&gt;around the column name like `column`.&lt;/P&gt;</description>
      <pubDate>Tue, 15 Nov 2016 04:36:33 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Support-Questions/Hive-Query-keyword-column-name/m-p/173685#M135951</guid>
      <dc:creator>myoung</dc:creator>
      <dc:date>2016-11-15T04:36:33Z</dc:date>
    </item>
    <item>
      <title>Re: Hive: Query keyword column name</title>
      <link>https://community.cloudera.com/t5/Support-Questions/Hive-Query-keyword-column-name/m-p/173686#M135952</link>
      <description>&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;After doing "&lt;STRONG&gt;set hive.support.sql11.reserved.keywords=false&lt;/STRONG&gt;", it allows to query the column with the keyword.&lt;/P&gt;&lt;P&gt;When using &lt;STRONG&gt;back quotes&lt;/STRONG&gt;, it gives the following error:&lt;/P&gt;&lt;P&gt;select `header.timestamp` from avro_test_channel;&lt;/P&gt;&lt;P&gt;FAILED: SemanticException [Error 10004]: Line 1:7 Invalid table alias or column reference 'header.timestamp': (possible column names are:&lt;/P&gt;</description>
      <pubDate>Sun, 20 Nov 2016 07:55:19 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Support-Questions/Hive-Query-keyword-column-name/m-p/173686#M135952</guid>
      <dc:creator>ashsskum</dc:creator>
      <dc:date>2016-11-20T07:55:19Z</dc:date>
    </item>
    <item>
      <title>Re: Hive: Query keyword column name</title>
      <link>https://community.cloudera.com/t5/Support-Questions/Hive-Query-keyword-column-name/m-p/173687#M135953</link>
      <description>&lt;P&gt;For the backtick approach, you might want to try `header`.`timestamp`&lt;/P&gt;</description>
      <pubDate>Sat, 28 Jan 2017 14:20:57 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Support-Questions/Hive-Query-keyword-column-name/m-p/173687#M135953</guid>
      <dc:creator>swaranga</dc:creator>
      <dc:date>2017-01-28T14:20:57Z</dc:date>
    </item>
  </channel>
</rss>

