<?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: SQL Query Failed with Cloudera Hive JDBC driver but works fine in Hue in Archives of Support Questions (Read Only)</title>
    <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/SQL-Query-Failed-with-Cloudera-Hive-JDBC-driver-but-works/m-p/270636#M72895</link>
    <description>&lt;P&gt;For me UseNativeQuery=0 works well with the Simba jdbc Spark driver.&lt;/P&gt;&lt;P&gt;So there is a misunderstood in the Simba Spark documentation. In fact it's written that 0 is the default value, but in reality the default value is 1 and not 0 !&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Fri, 13 Sep 2019 09:36:49 GMT</pubDate>
    <dc:creator>prossblad</dc:creator>
    <dc:date>2019-09-13T09:36:49Z</dc:date>
    <item>
      <title>SQL Query Failed with Cloudera Hive JDBC driver but works fine in Hue</title>
      <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/SQL-Query-Failed-with-Cloudera-Hive-JDBC-driver-but-works/m-p/63103#M72886</link>
      <description>&lt;P&gt;We have a Hive SQL that runs fine in Hue but when we run that same query via Hive JDBC driver it fails with the below error message,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;java.sql.SQLException: [Cloudera][HiveJDBCDriver](500051) ERROR processing query/statement. Error Code: 10009, SQL state: TStatus(statusCode:ERROR_STATUS, infoMessages:[*org.apache.hive.service.cli.HiveSQLException:Error while compiling statement: FAILED: SemanticException [Error 10009]: Line 1:5602 Invalid table alias 'F':17:16, org.apache.hive.service.cli.operation.Operation:toSQLException:Operation.java:400, org.apache.hive.service.cli.operation.SQLOperation:prepare:SQLOperation.java:187, org.apache.hive.service.cli.operation.SQLOperation:runInternal:SQLOperation.java:271, org.apache.hive.service.cli.operation.Operation:run:Operation.java:337, org.apache.hive.service.cli.session.HiveSessionImpl:executeStatementInternal:HiveSessionImpl.java:439, org.apache.hive.service.cli.session.HiveSessionImpl:executeStatementAsync:HiveSessionImpl.java:416, org.apache.hive.service.cli.CLIService:executeStatementAsync:CLIService.java:282, org.apache.hive.service.cli.thrift.ThriftCLIService:ExecuteStatement:ThriftCLIService.java:501, org.apache.hive.service.cli.thrift.TCLIService$Processor$ExecuteStatement:getResult:TCLIService.java:1313, org.apache.hive.service.cli.thrift.TCLIService$Processor$ExecuteStatement:getResult:TCLIService.java:1298, org.apache.thrift.ProcessFunction:process:ProcessFunction.java:39, org.apache.thrift.TBaseProcessor:process:TBaseProcessor.java:39, org.apache.hadoop.hive.thrift.HadoopThriftAuthBridge$Server$TUGIAssumingProcessor:process:HadoopThriftAuthBridge.java:705, org.apache.thrift.server.TThreadPoolServer$WorkerProcess:run:TThreadPoolServer.java:286, java.util.concurrent.ThreadPoolExecutor:runWorker:ThreadPoolExecutor.java:1142, java.util.concurrent.ThreadPoolExecutor$Worker:run:ThreadPoolExecutor.java:617, java.lang.Thread:run:Thread.java:745, *org.apache.hadoop.hive.ql.parse.SemanticException:Line 1:5602 Invalid table alias 'F':36:20,&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 21 Apr 2026 13:45:00 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Archives-of-Support-Questions/SQL-Query-Failed-with-Cloudera-Hive-JDBC-driver-but-works/m-p/63103#M72886</guid>
      <dc:creator>spurusothaman</dc:creator>
      <dc:date>2026-04-21T13:45:00Z</dc:date>
    </item>
    <item>
      <title>Re: SQL Query Failed with Cloudera Hive JDBC driver but works fine in Hue</title>
      <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/SQL-Query-Failed-with-Cloudera-Hive-JDBC-driver-but-works/m-p/63211#M72887</link>
      <description>I don't see what exact query was sent to HS2 to run that caused the issue. But from the error message, it looks like that there is some issue on the query string itself. This could happen when there is bugs in the HIve JDBC driver that you are using and does not tramsform query correctly.&lt;BR /&gt;&lt;BR /&gt;Couple of things you can check:&lt;BR /&gt;&lt;BR /&gt;1. what version of JDBC driver are you using? If not latest, maybe try the latest version:&lt;BR /&gt;&lt;BR /&gt;&lt;A href="https://www.cloudera.com/downloads/connectors/hive/jdbc/2-5-19.html" target="_blank"&gt;https://www.cloudera.com/downloads/connectors/hive/jdbc/2-5-19.html&lt;/A&gt;&lt;BR /&gt;&lt;BR /&gt;2. Check if UseNativeQuery is set or not, Default is 0, meaning it will transform query inside JDBC before sending to HS2. You can try to set it to 1 to disable transformation. Details can be found here:&lt;BR /&gt;&lt;BR /&gt;&lt;A href="http://www.cloudera.com/documentation/other/connectors/hive-jdbc/latest/Cloudera-JDBC-Driver-for-Apache-Hive-Install-Guide.pdf" target="_blank"&gt;http://www.cloudera.com/documentation/other/connectors/hive-jdbc/latest/Cloudera-JDBC-Driver-for-Apache-Hive-Install-Guide.pdf&lt;/A&gt;</description>
      <pubDate>Mon, 01 Jan 2018 02:20:08 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Archives-of-Support-Questions/SQL-Query-Failed-with-Cloudera-Hive-JDBC-driver-but-works/m-p/63211#M72887</guid>
      <dc:creator>EricL</dc:creator>
      <dc:date>2018-01-01T02:20:08Z</dc:date>
    </item>
    <item>
      <title>Re: SQL Query Failed with Cloudera Hive JDBC driver but works fine in Hue</title>
      <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/SQL-Query-Failed-with-Cloudera-Hive-JDBC-driver-but-works/m-p/63271#M72888</link>
      <description>&lt;P&gt;worked with enabling the use of Native query option. Thanks for your help.&lt;/P&gt;</description>
      <pubDate>Wed, 03 Jan 2018 16:49:30 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Archives-of-Support-Questions/SQL-Query-Failed-with-Cloudera-Hive-JDBC-driver-but-works/m-p/63271#M72888</guid>
      <dc:creator>spurusothaman</dc:creator>
      <dc:date>2018-01-03T16:49:30Z</dc:date>
    </item>
    <item>
      <title>Re: SQL Query Failed with Cloudera Hive JDBC driver but works fine in Hue</title>
      <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/SQL-Query-Failed-with-Cloudera-Hive-JDBC-driver-but-works/m-p/67163#M72889</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Can you please share what tool you used for Hive JDBC connection and how you enabled the 'useNativeQuery' option.&amp;nbsp;&lt;/P&gt;&lt;P&gt;I am using soap Ui open source and not able to find out where to set this options as enabled.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Driver:&lt;/STRONG&gt;&amp;nbsp;com.cloudera.hive.jdbc4.HS2Driver&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Connection String&lt;/STRONG&gt; :&amp;nbsp;&lt;/P&gt;&lt;P&gt;jdbc:hive2://&amp;lt;cloudera serverserver&amp;gt;/&amp;lt;database&amp;gt;;AuthMech=1;principal=&amp;lt;&amp;gt;;KrbRealm=&amp;lt;&amp;gt;;KrbHostFQDN=&amp;lt;&amp;gt;;KrbServiceName=hive;KrbAuthType=2&lt;/P&gt;</description>
      <pubDate>Fri, 11 May 2018 10:01:01 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Archives-of-Support-Questions/SQL-Query-Failed-with-Cloudera-Hive-JDBC-driver-but-works/m-p/67163#M72889</guid>
      <dc:creator>Neha1</dc:creator>
      <dc:date>2018-05-11T10:01:01Z</dc:date>
    </item>
    <item>
      <title>Re: SQL Query Failed with Cloudera Hive JDBC driver but works fine in Hue</title>
      <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/SQL-Query-Failed-with-Cloudera-Hive-JDBC-driver-but-works/m-p/67167#M72890</link>
      <description>Hi,&lt;BR /&gt;&lt;BR /&gt;You just need to add UseNativeQuery into the connection string, so yours will look like below:&lt;BR /&gt;&lt;BR /&gt;jdbc:hive2://&amp;lt;cloudera serverserver&amp;gt;/&amp;lt;database&amp;gt;;AuthMech=1;principal=&amp;lt;&amp;gt;;KrbRealm=&amp;lt;&amp;gt;;KrbHostFQDN=&amp;lt;&amp;gt;;KrbServiceName=hive;KrbAuthType=2;UseNativeQuery=1&lt;BR /&gt;&lt;BR /&gt;Manual can be found here:&lt;BR /&gt;&lt;A href="http://www.cloudera.com/documentation/other/connectors/hive-jdbc/latest/Cloudera-JDBC-Driver-for-Apache-Hive-Install-Guide.pdf" target="_blank"&gt;http://www.cloudera.com/documentation/other/connectors/hive-jdbc/latest/Cloudera-JDBC-Driver-for-Apache-Hive-Install-Guide.pdf&lt;/A&gt;&lt;BR /&gt;&lt;BR /&gt;Cheers</description>
      <pubDate>Fri, 11 May 2018 11:50:32 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Archives-of-Support-Questions/SQL-Query-Failed-with-Cloudera-Hive-JDBC-driver-but-works/m-p/67167#M72890</guid>
      <dc:creator>EricL</dc:creator>
      <dc:date>2018-05-11T11:50:32Z</dc:date>
    </item>
    <item>
      <title>Re: SQL Query Failed with Cloudera Hive JDBC driver but works fine in Hue</title>
      <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/SQL-Query-Failed-with-Cloudera-Hive-JDBC-driver-but-works/m-p/67168#M72891</link>
      <description>&lt;P&gt;Hi,&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks for the reply . I have treidthe same. But unfortunately it did not work.&amp;nbsp;&lt;/P&gt;&lt;P&gt;I am getting the same error.&lt;/P&gt;&lt;P&gt;&lt;span class="lia-unicode-emoji" title=":disappointed_face:"&gt;😞&lt;/span&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;For reference query is :&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;select cr.name, from_unixtime(unix_timestamp(cr.transaction_timestamp,'yyyyMMddHHmmss'),'yyyy-MM-dd HH:mm'), s.store_name&lt;BR /&gt;from customer cr , d_store s ,&lt;BR /&gt;where cr.d_customer_key = :customerKey&lt;BR /&gt;and cr.d_store_key = s.d_store_key&lt;/P&gt;</description>
      <pubDate>Fri, 11 May 2018 12:02:18 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Archives-of-Support-Questions/SQL-Query-Failed-with-Cloudera-Hive-JDBC-driver-but-works/m-p/67168#M72891</guid>
      <dc:creator>Neha1</dc:creator>
      <dc:date>2018-05-11T12:02:18Z</dc:date>
    </item>
    <item>
      <title>Re: SQL Query Failed with Cloudera Hive JDBC driver but works fine in Hue</title>
      <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/SQL-Query-Failed-with-Cloudera-Hive-JDBC-driver-but-works/m-p/67200#M72892</link>
      <description>What exactly the error is?</description>
      <pubDate>Sat, 12 May 2018 07:01:11 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Archives-of-Support-Questions/SQL-Query-Failed-with-Cloudera-Hive-JDBC-driver-but-works/m-p/67200#M72892</guid>
      <dc:creator>EricL</dc:creator>
      <dc:date>2018-05-12T07:01:11Z</dc:date>
    </item>
    <item>
      <title>Re: SQL Query Failed with Cloudera Hive JDBC driver but works fine in Hue</title>
      <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/SQL-Query-Failed-with-Cloudera-Hive-JDBC-driver-but-works/m-p/67224#M72893</link>
      <description>The easy way to see if UseNativeQuery is in play here is to look at either JDBC driver log or Impala daemon log to see the query submitted is different from the query you actually ran. When UseNativeQuery=0, JDBC driver will transform query and the format submitted will be very different from your original query.&lt;BR /&gt;&lt;BR /&gt;I suggest you have a look to confirm. If you can share the exact error, that can help me to see what else it might be happening if UseNativeQuery is not in play.</description>
      <pubDate>Sat, 12 May 2018 22:43:26 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Archives-of-Support-Questions/SQL-Query-Failed-with-Cloudera-Hive-JDBC-driver-but-works/m-p/67224#M72893</guid>
      <dc:creator>EricL</dc:creator>
      <dc:date>2018-05-12T22:43:26Z</dc:date>
    </item>
    <item>
      <title>Re: SQL Query Failed with Cloudera Hive JDBC driver but works fine in Hue</title>
      <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/SQL-Query-Failed-with-Cloudera-Hive-JDBC-driver-but-works/m-p/67775#M72894</link>
      <description>&lt;P&gt;Hi,&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I am sorry, I couldnt respond as I got stuck with some work. I am not able to understand the problems , with different queries.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Today I tried the query, it gives me error (see error log at the end of the message. )&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;select substring(date,1,4)year,substring(date,5,2)month, sum(value) value, sum(discount) discount from&amp;nbsp;customer&amp;nbsp; where&lt;BR /&gt;customer_id = :custId&lt;BR /&gt;and date &amp;gt;= date_format(add_months(add_months(date_add(last_day(add_months(current_date, -1)),1),-3),-12),'yyyyMMdd')&lt;BR /&gt;and date &amp;lt; date_format(add_months(date_add(last_day(add_months(current_date, -1)),1),-3),'yyyyMMdd')&lt;BR /&gt;GROUP BY substring(date,1,4),substring(date,5,2)&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&lt;EM&gt;In this query I am using '&lt;/EM&gt;&lt;/STRONG&gt;&lt;SPAN&gt;&lt;STRONG&gt;&lt;EM&gt;:custId' to fetch the customer id from property (coming from test data file in soap ui). Please see attached image.&lt;/EM&gt;&lt;/STRONG&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;But when i run this query with hard coded value of customer id like below: , it works fine.&amp;nbsp;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;select substring(date,1,4)year,substring(date,5,2)month, sum(value) value, sum(discount) discount from&amp;nbsp;customer&amp;nbsp;&amp;nbsp;where&lt;BR /&gt;customer_id = '1234'&lt;BR /&gt;and date &amp;gt;= date_format(add_months(add_months(date_add(last_day(add_months(current_date, -1)),1),-3),-12),'yyyyMMdd')&lt;BR /&gt;and date &amp;lt; date_format(add_months(date_add(last_day(add_months(current_date, -1)),1),-3),'yyyyMMdd')&lt;BR /&gt;GROUP BY substring(date,1,4),substring(date,5,2)&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;ERROR LOG:&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;2018-05-31 10:56:52 - Error getting response; java.sql.SQLException: [Simba][HiveJDBCDriver](500051) ERROR processing query/statement. Error Code: 40000, SQL state: TStatus(statusCode:ERROR_STATUS, infoMessages:[*org.apache.hive.service.cli.HiveSQLException:Error while compiling statement: FAILED: ParseException line 2:17 cannot recognize input near '?' 'and' 'transaction_date_key' in expression specification:28:27, org.apache.hive.service.cli.operation.Operation:toSQLException:Operation.java:400, org.apache.hive.service.cli.operation.SQLOperation:prepare:SQLOperation.java:188, org.apache.hive.service.cli.operation.SQLOperation:runInternal:SQLOperation.java:267, org.apache.hive.service.cli.operation.Operation:run:Operation.java:337, org.apache.hive.service.cli.session.HiveSessionImpl:executeStatementInternal:HiveSessionImpl.java:439, org.apache.hive.service.cli.session.HiveSessionImpl:executeStatement:HiveSessionImpl.java:405, sun.reflect.GeneratedMethodAccessor57:invoke::-1, sun.reflect.DelegatingMethodAccessorImpl:invoke:DelegatingMethodAccessorImpl.java:43, java.lang.reflect.Method:invoke:Method.java:498, org.apache.hive.service.cli.session.HiveSessionProxy:invoke:HiveSessionProxy.java:78, org.apache.hive.service.cli.session.HiveSessionProxy:access$000:HiveSessionProxy.java:36, org.apache.hive.service.cli.session.HiveSessionProxy$1:run:HiveSessionProxy.java:63, java.security.AccessController:doPrivileged:AccessController.java:-2, javax.security.auth.Subject:doAs:Subject.java:422, org.apache.hadoop.security.UserGroupInformation:doAs:UserGroupInformation.java:1920, org.apache.hive.service.cli.session.HiveSessionProxy:invoke:HiveSessionProxy.java:59, com.sun.proxy.$Proxy25:executeStatement::-1, org.apache.hive.service.cli.CLIService:executeStatement:CLIService.java:257, org.apache.hive.service.cli.thrift.ThriftCLIService:ExecuteStatement:ThriftCLIService.java:501, org.apache.hive.service.cli.thrift.TCLIService$Processor$ExecuteStatement:getResult:TCLIService.java:1313, org.apache.hive.service.cli.thrift.TCLIService$Processor$ExecuteStatement:getResult:TCLIService.java:1298, org.apache.thrift.ProcessFunction:process:ProcessFunction.java:39, org.apache.thrift.TBaseProcessor:process:TBaseProcessor.java:39, org.apache.hadoop.hive.thrift.HadoopThriftAuthBridge$Server$TUGIAssumingProcessor:process:HadoopThriftAuthBridge.java:746, org.apache.thrift.server.TThreadPoolServer$WorkerProcess:run:TThreadPoolServer.java:286, java.util.concurrent.ThreadPoolExecutor:runWorker:ThreadPoolExecutor.java:1149, java.util.concurrent.ThreadPoolExecutor$Worker:run:ThreadPoolExecutor.java:624, java.lang.Thread:run:Thread.java:748, *org.apache.hadoop.hive.ql.parse.ParseException:line 2:17 cannot recognize input near '?' 'and' 'transaction_date_key' in expression specification:32:5, org.apache.hadoop.hive.ql.parse.ParseDriver:parse:ParseDriver.java:204, org.apache.hadoop.hive.ql.parse.ParseDriver:parse:ParseDriver.java:166, org.apache.hadoop.hive.ql.Driver:compile:Driver.java:466, org.apache.hadoop.hive.ql.Driver:compileInternal:Driver.java:1279, org.apache.hadoop.hive.ql.Driver:compileAndRespond:Driver.java:1266, org.apache.hive.service.cli.operation.SQLOperation:prepare:SQLOperation.java:186], sqlState:42000, errorCode:40000, errorMessage:Error while compiling statement: FAILED: ParseException line 2:17 cannot recognize input near '?' 'and' 'transaction_date_key' in expression specification), Query: select substring(transaction_date_key,1,4)year,substring(transaction_date_key,5,2)month, sum(transaction_value) transaction_value, sum(total_discount) total_discount from f_customer_transaction where&lt;BR /&gt;d_customer_key = ?&lt;BR /&gt;and transaction_date_key &amp;gt;= date_format(add_months(add_months(date_add(last_day(add_months(current_date, -1)),1),-3),-12),'yyyyMMdd')&lt;BR /&gt;and transaction_date_key &amp;lt; date_format(add_months(date_add(last_day(add_months(current_date, -1)),1),-3),'yyyyMMdd')&lt;BR /&gt;GROUP BY substring(transaction_date_key,1,4),substring(transaction_date_key,5,2).&lt;STRONG&gt;&lt;BR /&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="SoapUi Hive.JPG" style="width: 599px;"&gt;&lt;img src="https://community.cloudera.com/t5/image/serverpage/image-id/4157i56838E6B665BCA18/image-size/large?v=v2&amp;amp;px=999" role="button" title="SoapUi Hive.JPG" alt="SoapUi Hive.JPG" /&gt;&lt;/span&gt;&lt;/P&gt;</description>
      <pubDate>Thu, 31 May 2018 09:10:08 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Archives-of-Support-Questions/SQL-Query-Failed-with-Cloudera-Hive-JDBC-driver-but-works/m-p/67775#M72894</guid>
      <dc:creator>Neha1</dc:creator>
      <dc:date>2018-05-31T09:10:08Z</dc:date>
    </item>
    <item>
      <title>Re: SQL Query Failed with Cloudera Hive JDBC driver but works fine in Hue</title>
      <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/SQL-Query-Failed-with-Cloudera-Hive-JDBC-driver-but-works/m-p/270636#M72895</link>
      <description>&lt;P&gt;For me UseNativeQuery=0 works well with the Simba jdbc Spark driver.&lt;/P&gt;&lt;P&gt;So there is a misunderstood in the Simba Spark documentation. In fact it's written that 0 is the default value, but in reality the default value is 1 and not 0 !&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 13 Sep 2019 09:36:49 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Archives-of-Support-Questions/SQL-Query-Failed-with-Cloudera-Hive-JDBC-driver-but-works/m-p/270636#M72895</guid>
      <dc:creator>prossblad</dc:creator>
      <dc:date>2019-09-13T09:36:49Z</dc:date>
    </item>
    <item>
      <title>Re: SQL Query Failed with Cloudera Hive JDBC driver but works fine in Hue</title>
      <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/SQL-Query-Failed-with-Cloudera-Hive-JDBC-driver-but-works/m-p/271088#M72896</link>
      <description>&lt;a href="https://community.cloudera.com/t5/user/viewprofilepage/user-id/69463"&gt;@prossblad&lt;/a&gt; ,&lt;BR /&gt;&lt;BR /&gt;In Cloudera's Hive JDBC driver the default value for UseNativeQuery is 0, please refer to below doc:&lt;BR /&gt;&lt;A href="https://www.cloudera.com/documentation/other/connectors/hive-jdbc/latest/Cloudera-JDBC-Driver-for-Apache-Hive-Install-Guide.pdf" target="_blank"&gt;https://www.cloudera.com/documentation/other/connectors/hive-jdbc/latest/Cloudera-JDBC-Driver-for-Apache-Hive-Install-Guide.pdf&lt;/A&gt;&lt;BR /&gt;&lt;BR /&gt;Simba jdbc Spark driver also uses 0 as default value for UseNativeQuery, see below:&lt;BR /&gt;&lt;A href="https://www.simba.com/products/Spark/doc/JDBC_InstallGuide/content/jdbc/hi/options/usenativequery.htm" target="_blank"&gt;https://www.simba.com/products/Spark/doc/JDBC_InstallGuide/content/jdbc/hi/options/usenativequery.htm&lt;/A&gt;&lt;BR /&gt;&lt;BR /&gt;Cheers&lt;BR /&gt;Eric</description>
      <pubDate>Sat, 14 Sep 2019 03:43:30 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Archives-of-Support-Questions/SQL-Query-Failed-with-Cloudera-Hive-JDBC-driver-but-works/m-p/271088#M72896</guid>
      <dc:creator>EricL</dc:creator>
      <dc:date>2019-09-14T03:43:30Z</dc:date>
    </item>
    <item>
      <title>Re: SQL Query Failed with Cloudera Hive JDBC driver but works fine in Hue</title>
      <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/SQL-Query-Failed-with-Cloudera-Hive-JDBC-driver-but-works/m-p/347403#M72898</link>
      <description>&lt;P&gt;Just to confirm, are you saying that when you explicitly set Simba JDBC Spark Driver U&lt;SPAN&gt;seNativeQuery=0&lt;/SPAN&gt;, everything worked, but when it wasn't explicitly set (left to default) there were problems ?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 12 Jul 2022 11:49:58 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Archives-of-Support-Questions/SQL-Query-Failed-with-Cloudera-Hive-JDBC-driver-but-works/m-p/347403#M72898</guid>
      <dc:creator>Travail</dc:creator>
      <dc:date>2022-07-12T11:49:58Z</dc:date>
    </item>
  </channel>
</rss>

