<?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 ODBC Driver issue in Support Questions</title>
    <link>https://community.cloudera.com/t5/Support-Questions/Hive-ODBC-Driver-issue/m-p/408483#M252725</link>
    <description>&lt;P&gt;2.7.0&lt;/P&gt;</description>
    <pubDate>Mon, 19 May 2025 15:56:09 GMT</pubDate>
    <dc:creator>AlexDriver</dc:creator>
    <dc:date>2025-05-19T15:56:09Z</dc:date>
    <item>
      <title>Hive ODBC Driver issue</title>
      <link>https://community.cloudera.com/t5/Support-Questions/Hive-ODBC-Driver-issue/m-p/408299#M252679</link>
      <description>&lt;P&gt;Dear Community,&lt;BR /&gt;I've faced with an issue when i try to send the following query to Apache Hive using ODBC driver:&lt;/P&gt;&lt;P&gt;"-- Request ID: 4b9a2e0a-e250-45b7-b9cc-0915f20f848f&lt;/P&gt;&lt;P&gt;SELECT *&lt;BR /&gt;FROM (-- Request ID: 4b9a2e0a-e250-45b7-b9cc-0915f20f848f&lt;/P&gt;&lt;P&gt;select version()) AS Subquery__9&lt;BR /&gt;LIMIT 1"&lt;BR /&gt;&lt;BR /&gt;then i get an empty response.&lt;BR /&gt;However, if i remove the commented out fragments with Request Id and its uuid then it starts working as expected by returning the version.&lt;BR /&gt;&lt;BR /&gt;What am i missing here or is it an ODBC driver bug?&lt;BR /&gt;PS: it's not reproducible when i do the same using JDBC.&lt;/P&gt;</description>
      <pubDate>Tue, 13 May 2025 18:45:29 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Support-Questions/Hive-ODBC-Driver-issue/m-p/408299#M252679</guid>
      <dc:creator>AlexDriver</dc:creator>
      <dc:date>2025-05-13T18:45:29Z</dc:date>
    </item>
    <item>
      <title>Re: Hive ODBC Driver issue</title>
      <link>https://community.cloudera.com/t5/Support-Questions/Hive-ODBC-Driver-issue/m-p/408320#M252681</link>
      <description>&lt;P&gt;&lt;a href="https://community.cloudera.com/t5/user/viewprofilepage/user-id/126464"&gt;@AlexDriver&lt;/a&gt;,Welcome to our community! To help you get the best possible answer, I have tagged in our Hive experts &lt;a href="https://community.cloudera.com/t5/user/viewprofilepage/user-id/71090"&gt;@asish&lt;/a&gt;&amp;nbsp;&lt;a href="https://community.cloudera.com/t5/user/viewprofilepage/user-id/82698"&gt;@smruti&lt;/a&gt;&amp;nbsp;who may be able to assist you further.&lt;BR /&gt;&lt;BR /&gt;Please feel free to provide any additional information or details about your query, and we hope that you will find a satisfactory solution to your question.&lt;/P&gt;</description>
      <pubDate>Wed, 14 May 2025 06:23:53 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Support-Questions/Hive-ODBC-Driver-issue/m-p/408320#M252681</guid>
      <dc:creator>VidyaSargur</dc:creator>
      <dc:date>2025-05-14T06:23:53Z</dc:date>
    </item>
    <item>
      <title>Re: Hive ODBC Driver issue</title>
      <link>https://community.cloudera.com/t5/Support-Questions/Hive-ODBC-Driver-issue/m-p/408321#M252682</link>
      <description>&lt;P&gt;&lt;a href="https://community.cloudera.com/t5/user/viewprofilepage/user-id/126464"&gt;@AlexDriver&lt;/a&gt;&amp;nbsp;So our query is essentially this:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;SELECT *
FROM (
    SELECT version()
) AS Subquery__9
LIMIT 1;&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I think the driver connector is unable to parse the comment.&lt;BR /&gt;You may enable Native Query by setting &lt;STRONG&gt;UseNativeQuery=1,&amp;nbsp;&lt;/STRONG&gt;this way driver does not try to transform the query, and it runs directly in Hive. Try this and see if it works.&lt;/P&gt;&lt;P&gt;Driver user guide -&amp;nbsp;&lt;A href="https://downloads.cloudera.com/connectors/Cloudera_Hive_ODBC_2.8.2.1002/Cloudera-ODBC-Driver-for-Apache-Hive-Install-Guide.pdf" target="_blank"&gt;https://downloads.cloudera.com/connectors/Cloudera_Hive_ODBC_2.8.2.1002/Cloudera-ODBC-Driver-for-Apache-Hive-Install-Guide.pdf&lt;/A&gt;&lt;/P&gt;</description>
      <pubDate>Wed, 14 May 2025 06:47:51 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Support-Questions/Hive-ODBC-Driver-issue/m-p/408321#M252682</guid>
      <dc:creator>smruti</dc:creator>
      <dc:date>2025-05-14T06:47:51Z</dc:date>
    </item>
    <item>
      <title>Re: Hive ODBC Driver issue</title>
      <link>https://community.cloudera.com/t5/Support-Questions/Hive-ODBC-Driver-issue/m-p/408359#M252694</link>
      <description>&lt;P&gt;unfortunately&amp;nbsp;&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;STRONG&gt;UseNativeQuery=1&lt;/STRONG&gt;&lt;BR /&gt;hasn't helped.&lt;BR /&gt;the issue is still reproducible.&lt;/P&gt;</description>
      <pubDate>Wed, 14 May 2025 20:55:37 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Support-Questions/Hive-ODBC-Driver-issue/m-p/408359#M252694</guid>
      <dc:creator>AlexDriver</dc:creator>
      <dc:date>2025-05-14T20:55:37Z</dc:date>
    </item>
    <item>
      <title>Re: Hive ODBC Driver issue</title>
      <link>https://community.cloudera.com/t5/Support-Questions/Hive-ODBC-Driver-issue/m-p/408424#M252702</link>
      <description>&lt;P&gt;&lt;a href="https://community.cloudera.com/t5/user/viewprofilepage/user-id/126464"&gt;@AlexDriver&lt;/a&gt;&amp;nbsp;is it possible to enable trace logging in the driver and share the logs, and also see how the query shows up in the hiveserver2 logs?&lt;/P&gt;</description>
      <pubDate>Thu, 15 May 2025 19:49:25 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Support-Questions/Hive-ODBC-Driver-issue/m-p/408424#M252702</guid>
      <dc:creator>smruti</dc:creator>
      <dc:date>2025-05-15T19:49:25Z</dc:date>
    </item>
    <item>
      <title>Re: Hive ODBC Driver issue</title>
      <link>https://community.cloudera.com/t5/Support-Questions/Hive-ODBC-Driver-issue/m-p/408425#M252703</link>
      <description>&lt;P&gt;Could you test with multiline comment, just to see if it works?&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;SELECT *
FROM (/* Request ID: ... */ SELECT version()) AS Subquery__9
LIMIT 1;&lt;/LI-CODE&gt;&lt;P&gt;What's the ODBC driver version that you are using? Is it from Cloudera?&lt;/P&gt;</description>
      <pubDate>Thu, 15 May 2025 20:04:59 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Support-Questions/Hive-ODBC-Driver-issue/m-p/408425#M252703</guid>
      <dc:creator>smruti</dc:creator>
      <dc:date>2025-05-15T20:04:59Z</dc:date>
    </item>
    <item>
      <title>Re: Hive ODBC Driver issue</title>
      <link>https://community.cloudera.com/t5/Support-Questions/Hive-ODBC-Driver-issue/m-p/408426#M252704</link>
      <description>&lt;P&gt;here's what i can see in the driver log:&lt;BR /&gt;01:09:15.229 INFO 1431732928 Simba::DSI::SharedSingletonManager::LogVersionsAndLocation: SDK Version: 10.02.03.1020&lt;BR /&gt;01:09:15.229 INFO 1431732928 Simba::DSI::SharedSingletonManager::LogVersionsAndLocation: DSII Version: 2.7.0.1002&lt;BR /&gt;01:09:15.229 INFO 1431732928 Simba::DSI::SharedSingletonManager::LogVersionsAndLocation: Executing binary located at /opt/cloudera/hiveodbc/lib/64/libclouderahiveodbc64.so&lt;BR /&gt;01:09:15.229 INFO 1431732928 Simba::ODBC::Driver::Initialize: Default Database CHAR Encoding: UTF-8&lt;BR /&gt;01:09:15.229 INFO 1431732928 Simba::ODBC::Driver::Initialize: Default Database WCHAR Encoding: UTF-8&lt;BR /&gt;01:09:15.229 INFO 1431732928 Simba::ODBC::Driver::Initialize: Driver ANSI CHAR Encoding: UTF-8&lt;BR /&gt;01:09:15.229 INFO 1431732928 Simba::ODBC::Driver::Initialize: Driver Manager WCHAR Encoding: UTF-16LE&lt;BR /&gt;01:09:15.229 INFO 1431732928 Simba::ODBC::Driver::Initialize: Detected Driver Manager: unixODBC, 2.2.14 or 2.3.x branch&lt;BR /&gt;01:09:15.229 INFO 1431732928 Simba::ODBC::Driver::Initialize: Locale name: en_US&lt;BR /&gt;01:09:15.229 INFO 1431732928 Simba::ODBC::Driver::Initialize: Bitness: 64-bit&lt;BR /&gt;01:09:15.229 INFO 1431732928 ::CInterface::SQLAllocHandle: Allocating environment handle.&lt;BR /&gt;01:09:15.230 INFO 1431732928 Simba::ODBC::Environment::SQLSetEnvAttr: Attribute: SQL_ATTR_ODBC_VERSION (200)&lt;BR /&gt;01:09:15.230 INFO 1431732928 Simba::ODBC::EnvironmentAttributes::SetAttribute: Setting ODBC version to: 3&lt;BR /&gt;01:09:15.230 INFO 1431732928 Simba::ODBC::Environment::SQLGetEnvAttr: Attribute: SQL_ATTR_ODBC_VERSION (200)&lt;BR /&gt;01:09:15.230 INFO 1431732928 ::CInterface::SQLAllocHandle: Allocating connection handle.&lt;BR /&gt;01:09:15.439 INFO 1431732928 ::CInterface::SQLAllocHandle: Allocating statement handle.&lt;BR /&gt;01:09:15.787 INFO 1431732928 ::CInterface::SQLFreeHandle: Freeing statement handle.&lt;BR /&gt;01:09:15.801 INFO 1431732928 ::CInterface::SQLFreeHandle: Freeing connection handle.&lt;BR /&gt;01:09:15.801 INFO 1431732928 ::CInterface::SQLFreeHandle: Freeing environment handle.&lt;BR /&gt;&lt;BR /&gt;Does it explain anything?&lt;BR /&gt;&lt;BR /&gt;PS: later on i'll try to get to the hive server logs.&lt;/P&gt;</description>
      <pubDate>Thu, 15 May 2025 22:20:50 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Support-Questions/Hive-ODBC-Driver-issue/m-p/408426#M252704</guid>
      <dc:creator>AlexDriver</dc:creator>
      <dc:date>2025-05-15T22:20:50Z</dc:date>
    </item>
    <item>
      <title>Re: Hive ODBC Driver issue</title>
      <link>https://community.cloudera.com/t5/Support-Questions/Hive-ODBC-Driver-issue/m-p/408427#M252705</link>
      <description>&lt;P&gt;when a comment line is in a middle of the query or at the end - it works fine.&lt;/P&gt;&lt;P&gt;the only issue is when the commend is in the first line.&lt;/P&gt;</description>
      <pubDate>Thu, 15 May 2025 22:26:46 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Support-Questions/Hive-ODBC-Driver-issue/m-p/408427#M252705</guid>
      <dc:creator>AlexDriver</dc:creator>
      <dc:date>2025-05-15T22:26:46Z</dc:date>
    </item>
    <item>
      <title>Re: Hive ODBC Driver issue</title>
      <link>https://community.cloudera.com/t5/Support-Questions/Hive-ODBC-Driver-issue/m-p/408443#M252706</link>
      <description>&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Could you please share both versions and mark this thread resolved?&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;</description>
      <pubDate>Fri, 16 May 2025 13:36:10 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Support-Questions/Hive-ODBC-Driver-issue/m-p/408443#M252706</guid>
      <dc:creator>smruti</dc:creator>
      <dc:date>2025-05-16T13:36:10Z</dc:date>
    </item>
    <item>
      <title>Re: Hive ODBC Driver issue</title>
      <link>https://community.cloudera.com/t5/Support-Questions/Hive-ODBC-Driver-issue/m-p/408448#M252709</link>
      <description>&lt;P&gt;like i said in the beginning - this one doesn't work:&lt;/P&gt;&lt;P&gt;"-- Request ID: 4b9a2e0a-e250-45b7-b9cc-0915f20f848f&lt;/P&gt;&lt;P&gt;SELECT *&lt;BR /&gt;FROM (-- Request ID: 4b9a2e0a-e250-45b7-b9cc-0915f20f848f&lt;/P&gt;&lt;P&gt;select version()) AS Subquery__9&lt;BR /&gt;LIMIT 1"&lt;BR /&gt;&lt;BR /&gt;however, this one works fine:&lt;/P&gt;&lt;P&gt;"SELECT *&lt;BR /&gt;FROM (-- Request ID: 4b9a2e0a-e250-45b7-b9cc-0915f20f848f&lt;/P&gt;&lt;P&gt;select version()) AS Subquery__9&lt;BR /&gt;LIMIT 1&lt;/P&gt;&lt;P&gt;-- Request ID: 4b9a2e0a-e250-45b7-b9cc-0915f20f848f"&lt;BR /&gt;&lt;BR /&gt;Though our team found a workaround, but I'm afraid this thread can't set this as resolved as the original issue still exists, i.e. any valid multi-line query starting with a comment line - returns empty response. And like i also said - this is not the case when the query is sent through JDBC.&lt;/P&gt;</description>
      <pubDate>Fri, 16 May 2025 15:17:05 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Support-Questions/Hive-ODBC-Driver-issue/m-p/408448#M252709</guid>
      <dc:creator>AlexDriver</dc:creator>
      <dc:date>2025-05-16T15:17:05Z</dc:date>
    </item>
    <item>
      <title>Re: Hive ODBC Driver issue</title>
      <link>https://community.cloudera.com/t5/Support-Questions/Hive-ODBC-Driver-issue/m-p/408451#M252711</link>
      <description>&lt;P&gt;&lt;a href="https://community.cloudera.com/t5/user/viewprofilepage/user-id/126464"&gt;@AlexDriver&lt;/a&gt;&amp;nbsp;could you share the ODBC driver version you are using, so that we can test this?&lt;/P&gt;</description>
      <pubDate>Fri, 16 May 2025 18:25:42 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Support-Questions/Hive-ODBC-Driver-issue/m-p/408451#M252711</guid>
      <dc:creator>smruti</dc:creator>
      <dc:date>2025-05-16T18:25:42Z</dc:date>
    </item>
    <item>
      <title>Re: Hive ODBC Driver issue</title>
      <link>https://community.cloudera.com/t5/Support-Questions/Hive-ODBC-Driver-issue/m-p/408462#M252717</link>
      <description>&lt;P&gt;&lt;a href="https://community.cloudera.com/t5/user/viewprofilepage/user-id/126464"&gt;@AlexDriver&lt;/a&gt;&amp;nbsp;I tried this with latest ODBC driver 2.8.2. Used it with pyodbc, and I can reproduce the issue.&lt;BR /&gt;The error I get is :&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;Traceback (most recent call last):
  File "/hive/pyodbc_test.py", line 13, in &amp;lt;module&amp;gt;
    for row in cursor.fetchall():
               ^^^^^^^^^^^^^^^^^
pyodbc.ProgrammingError: No results.  Previous SQL was not a query.&lt;/LI-CODE&gt;&lt;P&gt;I have raised an enhancement request with the driver team.&amp;nbsp;&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;</description>
      <pubDate>Sat, 17 May 2025 23:34:25 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Support-Questions/Hive-ODBC-Driver-issue/m-p/408462#M252717</guid>
      <dc:creator>smruti</dc:creator>
      <dc:date>2025-05-17T23:34:25Z</dc:date>
    </item>
    <item>
      <title>Re: Hive ODBC Driver issue</title>
      <link>https://community.cloudera.com/t5/Support-Questions/Hive-ODBC-Driver-issue/m-p/408483#M252725</link>
      <description>&lt;P&gt;2.7.0&lt;/P&gt;</description>
      <pubDate>Mon, 19 May 2025 15:56:09 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Support-Questions/Hive-ODBC-Driver-issue/m-p/408483#M252725</guid>
      <dc:creator>AlexDriver</dc:creator>
      <dc:date>2025-05-19T15:56:09Z</dc:date>
    </item>
  </channel>
</rss>

