<?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 Impala JDBC driver does not parse table aliases with space correctly in some situations in Archives of Support Questions (Read Only)</title>
    <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/Impala-JDBC-driver-does-not-parse-table-aliases-with-space/m-p/33269#M9190</link>
    <description>&lt;P&gt;If the query contains a subquery in the FROM clause and the alias to the subquery contains space,&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P class="p1"&gt;&lt;STRONG&gt;&lt;EM&gt;select `alias with space`.code from (select * from sample_07) `alias with space`&lt;/EM&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;P class="p1"&gt;&amp;nbsp;&lt;/P&gt;&lt;P class="p1"&gt;the JDBC driver throws exception&lt;/P&gt;&lt;P class="p1"&gt;&amp;nbsp;&lt;/P&gt;&lt;P class="p1"&gt;&lt;EM&gt;&lt;FONT face="courier new,courier"&gt;Exception in thread "main" &lt;SPAN class="s1"&gt;java.sql.SQLException&lt;/SPAN&gt;: [Simba][ImpalaJDBCDriver](500051) ERROR processing query/statement. Error Code: 0, SQL state: TStatus(statusCode:ERROR_STATUS, sqlState:HY000, &lt;SPAN class="s1"&gt;errorMessage:AnalysisException&lt;/SPAN&gt;: Syntax error in line 1:&lt;/FONT&gt;&lt;/EM&gt;&lt;/P&gt;&lt;P class="p1"&gt;&lt;EM&gt;&lt;FONT face="courier new,courier"&gt;...lt`.`sample_07`) AS alias with space&lt;/FONT&gt;&lt;/EM&gt;&lt;/P&gt;&lt;P class="p1"&gt;&lt;EM&gt;&lt;FONT face="courier new,courier"&gt;&lt;SPAN class="Apple-converted-space"&gt;&amp;nbsp;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &lt;/SPAN&gt;^&lt;/FONT&gt;&lt;/EM&gt;&lt;/P&gt;&lt;P class="p1"&gt;&lt;EM&gt;&lt;FONT face="courier new,courier"&gt;Encountered: WITH&lt;/FONT&gt;&lt;/EM&gt;&lt;/P&gt;&lt;P class="p1"&gt;&lt;EM&gt;&lt;FONT face="courier new,courier"&gt;Expected: CROSS, FROM, FULL, GROUP, HAVING, INNER, JOIN, LEFT, LIMIT, OFFSET, ON, ORDER, RIGHT, UNION, USING, WHERE, COMMA&lt;/FONT&gt;&lt;/EM&gt;&lt;/P&gt;&lt;P class="p2"&gt;&amp;nbsp;&lt;/P&gt;&lt;P class="p1"&gt;&lt;EM&gt;&lt;FONT face="courier new,courier"&gt;CAUSED BY: Exception: Syntax error&lt;/FONT&gt;&lt;/EM&gt;&lt;/P&gt;&lt;P class="p1"&gt;&lt;EM&gt;&lt;FONT face="courier new,courier"&gt;), Query: SELECT `alias with space`.`code` FROM (SELECT `sample_07`.`code`, `sample_07`.`description`, `sample_07`.`total_emp`, `sample_07`.`salary` FROM `default`.`sample_07`) AS alias with space.&lt;/FONT&gt;&lt;/EM&gt;&lt;/P&gt;&lt;P class="p1"&gt;&lt;EM&gt;&lt;FONT face="courier new,courier"&gt;at com.cloudera.impala.hivecommon.api.HS2Client.executeStatementInternal(Unknown Source)&lt;/FONT&gt;&lt;/EM&gt;&lt;/P&gt;&lt;P class="p1"&gt;&lt;EM&gt;&lt;FONT face="courier new,courier"&gt;at com.cloudera.impala.hivecommon.api.HS2Client.executeStatement(Unknown Source)&lt;/FONT&gt;&lt;/EM&gt;&lt;/P&gt;&lt;P class="p1"&gt;&lt;EM&gt;&lt;FONT face="courier new,courier"&gt;at com.cloudera.impala.hivecommon.dataengine.HiveJDBCNativeQueryExecutor.executeQuery(Unknown Source)&lt;/FONT&gt;&lt;/EM&gt;&lt;/P&gt;&lt;P class="p1"&gt;&lt;EM&gt;&lt;FONT face="courier new,courier"&gt;at com.cloudera.impala.hivecommon.dataengine.HiveJDBCDSIExtQueryExecutor.execute(Unknown Source)&lt;/FONT&gt;&lt;/EM&gt;&lt;/P&gt;&lt;P class="p1"&gt;&lt;EM&gt;&lt;FONT face="courier new,courier"&gt;at com.cloudera.impala.jdbc.common.SStatement.executeNoParams(Unknown Source)&lt;/FONT&gt;&lt;/EM&gt;&lt;/P&gt;&lt;P class="p1"&gt;&lt;EM&gt;&lt;FONT face="courier new,courier"&gt;at com.cloudera.impala.jdbc.common.SStatement.executeQuery(Unknown Source)&lt;/FONT&gt;&lt;/EM&gt;&lt;/P&gt;&lt;P class="p1"&gt;&lt;EM&gt;&lt;FONT face="courier new,courier"&gt;Caused by: &lt;SPAN class="s1"&gt;com.cloudera.impala.support.exceptions.GeneralException&lt;/SPAN&gt;: [Simba][ImpalaJDBCDriver](500051) ERROR processing query/statement. Error Code: 0, SQL state: TStatus(statusCode:ERROR_STATUS, sqlState:HY000, &lt;SPAN class="s1"&gt;errorMessage:AnalysisException&lt;/SPAN&gt;: Syntax error in line 1:&lt;/FONT&gt;&lt;/EM&gt;&lt;/P&gt;&lt;P class="p1"&gt;&lt;EM&gt;&lt;FONT face="courier new,courier"&gt;...lt`.`sample_07`) AS alias with space&lt;/FONT&gt;&lt;/EM&gt;&lt;/P&gt;&lt;P class="p1"&gt;&lt;EM&gt;&lt;FONT face="courier new,courier"&gt;&lt;SPAN class="Apple-converted-space"&gt;&amp;nbsp;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &lt;/SPAN&gt;^&lt;/FONT&gt;&lt;/EM&gt;&lt;/P&gt;&lt;P class="p1"&gt;&lt;EM&gt;&lt;FONT face="courier new,courier"&gt;Encountered: WITH&lt;/FONT&gt;&lt;/EM&gt;&lt;/P&gt;&lt;P class="p1"&gt;&lt;EM&gt;&lt;FONT face="courier new,courier"&gt;Expected: CROSS, FROM, FULL, GROUP, HAVING, INNER, JOIN, LEFT, LIMIT, OFFSET, ON, ORDER, RIGHT, UNION, USING, WHERE, COMMA&lt;/FONT&gt;&lt;/EM&gt;&lt;/P&gt;&lt;P class="p2"&gt;&amp;nbsp;&lt;/P&gt;&lt;P class="p1"&gt;&lt;EM&gt;&lt;FONT face="courier new,courier"&gt;CAUSED BY: Exception: Syntax error&lt;/FONT&gt;&lt;/EM&gt;&lt;/P&gt;&lt;P class="p1"&gt;&lt;EM&gt;&lt;FONT face="courier new,courier"&gt;), Query: SELECT `alias with space`.`code` FROM (SELECT `sample_07`.`code`, `sample_07`.`description`, `sample_07`.`total_emp`, `sample_07`.`salary` FROM `default`.`sample_07`) AS alias with space.&lt;/FONT&gt;&lt;/EM&gt;&lt;/P&gt;&lt;P class="p1"&gt;&lt;EM&gt;&lt;FONT face="courier new,courier"&gt;... 6 more&lt;/FONT&gt;&lt;/EM&gt;&lt;/P&gt;&lt;P class="p1"&gt;&amp;nbsp;&lt;/P&gt;&lt;P class="p1"&gt;&lt;FONT face="courier new,courier"&gt;Is this a known issue?&lt;/FONT&gt;&lt;/P&gt;&lt;P class="p1"&gt;&amp;nbsp;&lt;/P&gt;&lt;P class="p1"&gt;&lt;FONT face="courier new, courier"&gt;&lt;SPAN&gt;/Saravana&lt;/SPAN&gt;&lt;/FONT&gt;&lt;/P&gt;</description>
    <pubDate>Fri, 16 Sep 2022 09:45:26 GMT</pubDate>
    <dc:creator>saravana</dc:creator>
    <dc:date>2022-09-16T09:45:26Z</dc:date>
    <item>
      <title>Impala JDBC driver does not parse table aliases with space correctly in some situations</title>
      <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/Impala-JDBC-driver-does-not-parse-table-aliases-with-space/m-p/33269#M9190</link>
      <description>&lt;P&gt;If the query contains a subquery in the FROM clause and the alias to the subquery contains space,&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P class="p1"&gt;&lt;STRONG&gt;&lt;EM&gt;select `alias with space`.code from (select * from sample_07) `alias with space`&lt;/EM&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;P class="p1"&gt;&amp;nbsp;&lt;/P&gt;&lt;P class="p1"&gt;the JDBC driver throws exception&lt;/P&gt;&lt;P class="p1"&gt;&amp;nbsp;&lt;/P&gt;&lt;P class="p1"&gt;&lt;EM&gt;&lt;FONT face="courier new,courier"&gt;Exception in thread "main" &lt;SPAN class="s1"&gt;java.sql.SQLException&lt;/SPAN&gt;: [Simba][ImpalaJDBCDriver](500051) ERROR processing query/statement. Error Code: 0, SQL state: TStatus(statusCode:ERROR_STATUS, sqlState:HY000, &lt;SPAN class="s1"&gt;errorMessage:AnalysisException&lt;/SPAN&gt;: Syntax error in line 1:&lt;/FONT&gt;&lt;/EM&gt;&lt;/P&gt;&lt;P class="p1"&gt;&lt;EM&gt;&lt;FONT face="courier new,courier"&gt;...lt`.`sample_07`) AS alias with space&lt;/FONT&gt;&lt;/EM&gt;&lt;/P&gt;&lt;P class="p1"&gt;&lt;EM&gt;&lt;FONT face="courier new,courier"&gt;&lt;SPAN class="Apple-converted-space"&gt;&amp;nbsp;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &lt;/SPAN&gt;^&lt;/FONT&gt;&lt;/EM&gt;&lt;/P&gt;&lt;P class="p1"&gt;&lt;EM&gt;&lt;FONT face="courier new,courier"&gt;Encountered: WITH&lt;/FONT&gt;&lt;/EM&gt;&lt;/P&gt;&lt;P class="p1"&gt;&lt;EM&gt;&lt;FONT face="courier new,courier"&gt;Expected: CROSS, FROM, FULL, GROUP, HAVING, INNER, JOIN, LEFT, LIMIT, OFFSET, ON, ORDER, RIGHT, UNION, USING, WHERE, COMMA&lt;/FONT&gt;&lt;/EM&gt;&lt;/P&gt;&lt;P class="p2"&gt;&amp;nbsp;&lt;/P&gt;&lt;P class="p1"&gt;&lt;EM&gt;&lt;FONT face="courier new,courier"&gt;CAUSED BY: Exception: Syntax error&lt;/FONT&gt;&lt;/EM&gt;&lt;/P&gt;&lt;P class="p1"&gt;&lt;EM&gt;&lt;FONT face="courier new,courier"&gt;), Query: SELECT `alias with space`.`code` FROM (SELECT `sample_07`.`code`, `sample_07`.`description`, `sample_07`.`total_emp`, `sample_07`.`salary` FROM `default`.`sample_07`) AS alias with space.&lt;/FONT&gt;&lt;/EM&gt;&lt;/P&gt;&lt;P class="p1"&gt;&lt;EM&gt;&lt;FONT face="courier new,courier"&gt;at com.cloudera.impala.hivecommon.api.HS2Client.executeStatementInternal(Unknown Source)&lt;/FONT&gt;&lt;/EM&gt;&lt;/P&gt;&lt;P class="p1"&gt;&lt;EM&gt;&lt;FONT face="courier new,courier"&gt;at com.cloudera.impala.hivecommon.api.HS2Client.executeStatement(Unknown Source)&lt;/FONT&gt;&lt;/EM&gt;&lt;/P&gt;&lt;P class="p1"&gt;&lt;EM&gt;&lt;FONT face="courier new,courier"&gt;at com.cloudera.impala.hivecommon.dataengine.HiveJDBCNativeQueryExecutor.executeQuery(Unknown Source)&lt;/FONT&gt;&lt;/EM&gt;&lt;/P&gt;&lt;P class="p1"&gt;&lt;EM&gt;&lt;FONT face="courier new,courier"&gt;at com.cloudera.impala.hivecommon.dataengine.HiveJDBCDSIExtQueryExecutor.execute(Unknown Source)&lt;/FONT&gt;&lt;/EM&gt;&lt;/P&gt;&lt;P class="p1"&gt;&lt;EM&gt;&lt;FONT face="courier new,courier"&gt;at com.cloudera.impala.jdbc.common.SStatement.executeNoParams(Unknown Source)&lt;/FONT&gt;&lt;/EM&gt;&lt;/P&gt;&lt;P class="p1"&gt;&lt;EM&gt;&lt;FONT face="courier new,courier"&gt;at com.cloudera.impala.jdbc.common.SStatement.executeQuery(Unknown Source)&lt;/FONT&gt;&lt;/EM&gt;&lt;/P&gt;&lt;P class="p1"&gt;&lt;EM&gt;&lt;FONT face="courier new,courier"&gt;Caused by: &lt;SPAN class="s1"&gt;com.cloudera.impala.support.exceptions.GeneralException&lt;/SPAN&gt;: [Simba][ImpalaJDBCDriver](500051) ERROR processing query/statement. Error Code: 0, SQL state: TStatus(statusCode:ERROR_STATUS, sqlState:HY000, &lt;SPAN class="s1"&gt;errorMessage:AnalysisException&lt;/SPAN&gt;: Syntax error in line 1:&lt;/FONT&gt;&lt;/EM&gt;&lt;/P&gt;&lt;P class="p1"&gt;&lt;EM&gt;&lt;FONT face="courier new,courier"&gt;...lt`.`sample_07`) AS alias with space&lt;/FONT&gt;&lt;/EM&gt;&lt;/P&gt;&lt;P class="p1"&gt;&lt;EM&gt;&lt;FONT face="courier new,courier"&gt;&lt;SPAN class="Apple-converted-space"&gt;&amp;nbsp;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &lt;/SPAN&gt;^&lt;/FONT&gt;&lt;/EM&gt;&lt;/P&gt;&lt;P class="p1"&gt;&lt;EM&gt;&lt;FONT face="courier new,courier"&gt;Encountered: WITH&lt;/FONT&gt;&lt;/EM&gt;&lt;/P&gt;&lt;P class="p1"&gt;&lt;EM&gt;&lt;FONT face="courier new,courier"&gt;Expected: CROSS, FROM, FULL, GROUP, HAVING, INNER, JOIN, LEFT, LIMIT, OFFSET, ON, ORDER, RIGHT, UNION, USING, WHERE, COMMA&lt;/FONT&gt;&lt;/EM&gt;&lt;/P&gt;&lt;P class="p2"&gt;&amp;nbsp;&lt;/P&gt;&lt;P class="p1"&gt;&lt;EM&gt;&lt;FONT face="courier new,courier"&gt;CAUSED BY: Exception: Syntax error&lt;/FONT&gt;&lt;/EM&gt;&lt;/P&gt;&lt;P class="p1"&gt;&lt;EM&gt;&lt;FONT face="courier new,courier"&gt;), Query: SELECT `alias with space`.`code` FROM (SELECT `sample_07`.`code`, `sample_07`.`description`, `sample_07`.`total_emp`, `sample_07`.`salary` FROM `default`.`sample_07`) AS alias with space.&lt;/FONT&gt;&lt;/EM&gt;&lt;/P&gt;&lt;P class="p1"&gt;&lt;EM&gt;&lt;FONT face="courier new,courier"&gt;... 6 more&lt;/FONT&gt;&lt;/EM&gt;&lt;/P&gt;&lt;P class="p1"&gt;&amp;nbsp;&lt;/P&gt;&lt;P class="p1"&gt;&lt;FONT face="courier new,courier"&gt;Is this a known issue?&lt;/FONT&gt;&lt;/P&gt;&lt;P class="p1"&gt;&amp;nbsp;&lt;/P&gt;&lt;P class="p1"&gt;&lt;FONT face="courier new, courier"&gt;&lt;SPAN&gt;/Saravana&lt;/SPAN&gt;&lt;/FONT&gt;&lt;/P&gt;</description>
      <pubDate>Fri, 16 Sep 2022 09:45:26 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Archives-of-Support-Questions/Impala-JDBC-driver-does-not-parse-table-aliases-with-space/m-p/33269#M9190</guid>
      <dc:creator>saravana</dc:creator>
      <dc:date>2022-09-16T09:45:26Z</dc:date>
    </item>
    <item>
      <title>Re: Impala JDBC driver does not parse table aliases with space correctly in some situations</title>
      <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/Impala-JDBC-driver-does-not-parse-table-aliases-with-space/m-p/33433#M9191</link>
      <description>&lt;P&gt;Hi Saravana,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;thanks for your report! Looks like a new isue. Would you mind filing a JIRA for it so we can assign and track it?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;As a possible workaround, could you try running the query with "use native query" enabled in&amp;nbsp;the JDBC driver?&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;The driver will send the &lt;/SPAN&gt;&lt;SPAN class="lia-search-match-lithium"&gt;query&lt;/SPAN&gt;&lt;SPAN&gt; to Impala verbatim (sometimes the driver may make some changes to the SQL).&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;&lt;A href="http://www.cloudera.com/content/cloudera/en/documentation/connectors/latest/PDF/Cloudera-JDBC-Driver-for-Impala-Install-Guide.pdf" target="_blank"&gt;http://www.cloudera.com/content/cloudera/en/documentation/connectors/latest/PDF/Cloudera-JDBC-Driver-for-Impala-Install-Guide.pdf&lt;/A&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;Alex&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 26 Oct 2015 19:01:30 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Archives-of-Support-Questions/Impala-JDBC-driver-does-not-parse-table-aliases-with-space/m-p/33433#M9191</guid>
      <dc:creator>alex.behm</dc:creator>
      <dc:date>2015-10-26T19:01:30Z</dc:date>
    </item>
    <item>
      <title>Re: Impala JDBC driver does not parse table aliases with space correctly in some situations</title>
      <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/Impala-JDBC-driver-does-not-parse-table-aliases-with-space/m-p/33612#M9192</link>
      <description>&lt;P&gt;useNativeQuery option is an workaround for this problem. Filed this as a bug in Jira&amp;nbsp;&lt;A href="https://issues.cloudera.org/browse/IMPALA-2609" target="_blank"&gt;IMPALA-2609&lt;/A&gt;.&lt;/P&gt;</description>
      <pubDate>Fri, 30 Oct 2015 08:35:18 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Archives-of-Support-Questions/Impala-JDBC-driver-does-not-parse-table-aliases-with-space/m-p/33612#M9192</guid>
      <dc:creator>saravana</dc:creator>
      <dc:date>2015-10-30T08:35:18Z</dc:date>
    </item>
  </channel>
</rss>

