How to check duplicates in hive table used on one or two columns?
e.g. table1 and check duplicates for col1
duplicates in hive table
-
- Site Admin
- Posts: 186
- Joined: Wed Jul 16, 2014 9:22 pm
- Contact:
Re: duplicates in hive table
I tried it in HWT 2.6 and it is working.
Code: Select all
create table table2 as
Select A.* from
(select *,
row_Number() over (partition By col1 order by col1 desc) as row_num
from table1 )A
where row_num=1;
Return to “Hadoop and Big Data”
Who is online
Users browsing this forum: No registered users and 4 guests