<?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: [Cloudera][JDBC](10140) Error converting value to long in Support Questions</title>
    <link>https://community.cloudera.com/t5/Support-Questions/Cloudera-JDBC-10140-Error-converting-value-to-long/m-p/405340#M252459</link>
    <description>Correction - I’m using cloudera hive jdbc driver 2.6.21.1025&lt;BR /&gt;</description>
    <pubDate>Wed, 02 Apr 2025 17:10:24 GMT</pubDate>
    <dc:creator>LDAP</dc:creator>
    <dc:date>2025-04-02T17:10:24Z</dc:date>
    <item>
      <title>[Cloudera][JDBC](10140) Error converting value to long</title>
      <link>https://community.cloudera.com/t5/Support-Questions/Cloudera-JDBC-10140-Error-converting-value-to-long/m-p/405287#M252445</link>
      <description>&lt;P&gt;Hello, I’m getting the above error when running this query.&lt;/P&gt;&lt;P&gt;select count(*) from table where created_on &amp;gt;= date_sub(current_date(),100));&lt;/P&gt;&lt;P&gt;I tried casting the count to int, then I get the same error with “int” in place of “long”.&lt;/P&gt;&lt;P&gt;If I remove the where clause, it works just fine.&lt;/P&gt;&lt;P&gt;If I execute the same query in hue, I get the results back without error.&lt;/P&gt;&lt;P&gt;Any ideas on why this is happening and any workarounds?&lt;/P&gt;&lt;P&gt;Thank you.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 02 Apr 2025 12:47:10 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Support-Questions/Cloudera-JDBC-10140-Error-converting-value-to-long/m-p/405287#M252445</guid>
      <dc:creator>LDAP</dc:creator>
      <dc:date>2025-04-02T12:47:10Z</dc:date>
    </item>
    <item>
      <title>Re: [Cloudera][JDBC](10140) Error converting value to long</title>
      <link>https://community.cloudera.com/t5/Support-Questions/Cloudera-JDBC-10140-Error-converting-value-to-long/m-p/405331#M252457</link>
      <description>&lt;P&gt;Welcome to the community&amp;nbsp;&lt;a href="https://community.cloudera.com/t5/user/viewprofilepage/user-id/125374"&gt;@LDAP&lt;/a&gt;&amp;nbsp;. While you are waiting for someone more knowledgable than me to reply, can you perhaps add some more context here? For instance what versions of Spark and&amp;nbsp;&lt;SPAN&gt;JDBC are you using?&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;</description>
      <pubDate>Wed, 02 Apr 2025 16:16:39 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Support-Questions/Cloudera-JDBC-10140-Error-converting-value-to-long/m-p/405331#M252457</guid>
      <dc:creator>cjervis</dc:creator>
      <dc:date>2025-04-02T16:16:39Z</dc:date>
    </item>
    <item>
      <title>Re: [Cloudera][JDBC](10140) Error converting value to long</title>
      <link>https://community.cloudera.com/t5/Support-Questions/Cloudera-JDBC-10140-Error-converting-value-to-long/m-p/405340#M252459</link>
      <description>Correction - I’m using cloudera hive jdbc driver 2.6.21.1025&lt;BR /&gt;</description>
      <pubDate>Wed, 02 Apr 2025 17:10:24 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Support-Questions/Cloudera-JDBC-10140-Error-converting-value-to-long/m-p/405340#M252459</guid>
      <dc:creator>LDAP</dc:creator>
      <dc:date>2025-04-02T17:10:24Z</dc:date>
    </item>
    <item>
      <title>Re: [Cloudera][JDBC](10140) Error converting value to long</title>
      <link>https://community.cloudera.com/t5/Support-Questions/Cloudera-JDBC-10140-Error-converting-value-to-long/m-p/405644#M252497</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.cloudera.com/t5/user/viewprofilepage/user-id/125374"&gt;@LDAP&lt;/a&gt;&amp;nbsp;, since you mentioned that the same query is working fine on Hue, could you try to set UseNativeQuery=1 on your driver configuration and retry the query.&lt;BR /&gt;&lt;BR /&gt;Reference:&amp;nbsp;&lt;A href="https://docs.cloudera.com/documentation/other/connectors/hive-jdbc/2-6-26/Cloudera-JDBC-Connector-for-Apache-Hive-Install-Guide.pdf" target="_blank"&gt;https://docs.cloudera.com/documentation/other/connectors/hive-jdbc/2-6-26/Cloudera-JDBC-Connector-for-Apache-Hive-Install-Guide.pdf&lt;/A&gt;&amp;nbsp;(page 109)&lt;/P&gt;</description>
      <pubDate>Mon, 07 Apr 2025 22:46:07 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Support-Questions/Cloudera-JDBC-10140-Error-converting-value-to-long/m-p/405644#M252497</guid>
      <dc:creator>caio_contente</dc:creator>
      <dc:date>2025-04-07T22:46:07Z</dc:date>
    </item>
  </channel>
</rss>

