- Subscribe to RSS Feed
- Mark Question as New
- Mark Question as Read
- Float this Question for Current User
- Bookmark
- Subscribe
- Mute
- Printer Friendly Page
hive select distinct count error
- Labels:
-
Apache Hive
Created ‎03-01-2021 01:51 PM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
HI,
I am running a select distinct count on a column, am getting the below error. can you please help me.
select distinct count (id) from hive_table_tbs;
error message
Error while compiling statement: FAILED: SemanticException [Error 10128]: line 1:16 Not yet supported place for UDAF 'count'
Thank You
Created ‎03-01-2021 07:57 PM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Try with below query and share the output,
select count (distinct id) from hive_table_tbs;
Created ‎03-01-2021 07:57 PM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Try with below query and share the output,
select count (distinct id) from hive_table_tbs;
Created ‎03-02-2021 01:21 AM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Thank you. I query run fine.
select count (distinct id) from hive_table_tbs;
output:
1092
Created ‎03-02-2021 01:32 AM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Welcome @
Created ‎03-23-2021 07:09 AM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Please find here the Apache Hive tutorial and more information on selecting distinct values under the Aggregations section.
For more on the Apache Hive content roadmap, please refer to our documentation.
Ferenc Erdelyi, Technical Solutions Manager
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.
Learn more about the Cloudera Community:
