- Subscribe to RSS Feed
- Mark Question as New
- Mark Question as Read
- Float this Question for Current User
- Bookmark
- Subscribe
- Mute
- Printer Friendly Page
[Cloudera][JDBC](10140) Error converting value to long
- Labels:
-
Apache Spark
Created 04-02-2025 05:47 AM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Hello, I’m getting the above error when running this query.
select count(*) from table where created_on >= date_sub(current_date(),100));
I tried casting the count to int, then I get the same error with “int” in place of “long”.
If I remove the where clause, it works just fine.
If I execute the same query in hue, I get the results back without error.
Any ideas on why this is happening and any workarounds?
Thank you.
Created 04-02-2025 09:16 AM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Welcome to the community @LDAP . 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 JDBC are you using?
Cy Jervis, Manager, Community Program
Was your question answered? Make sure to mark the answer as the accepted solution.
If you find a reply useful, say thanks by clicking on the thumbs up button.
Created 04-02-2025 10:10 AM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
