create table prakash2(id int UNIQUE DISABLE NOVALIDATE,PRIMARY KEY(id) DISABLE NOVALIDATE);
insert into table prakash2 values(1);
insert into table prakash2 values(1);
insert into table prakash2 values(1);
+--------------+
| prakash2.id |
+--------------+
| 1 |
| 1 |
| 1 |
+--------------+
3 rows selected (0.149 seconds)
As per RDBMS concepts primary key itself has unique constraint but here in hive mentioning unique constraint explicitly allowing me to insert duplicate values.
How primary key and unique constraints are different HIVE apart from the traditional RDBMS systems?