Anusha Pillala created HIVE-19004:
-------------------------------------
Summary: How to specify/create primary key in HIVE 2.6 Version
Key: HIVE-19004
URL: https://issues.apache.org/jira/browse/HIVE-19004
Project: Hive
Issue Type: Bug
Components: Beeline
Affects Versions: 2.1.0
Reporter: Anusha Pillala
Hello,
I Am using Apache Hive 2.1.0 version. I am trying to create a simple table with
2 columns and trying to set the first column as primary key. But it is throwing
error.
0: jdbc:hive2://10.230.245.94:10000/s3_data> ALTER TABLE VENDOR ADD
CONSTRAINT VENDOR_PK PRIMARY KEY (VENDOR_ID);
Error: Error while compiling statement: FAILED: ParseException line 1:19 cannot
recognize input near 'ADD' 'CONSTRAINT' 'VENDOR_PK' in alter table statement
(state=42000,code=40000)
I read that primary key concept has been added from 2.1 version , but then when
I try to create in beeline it's not recognizing the keyword "PRIMARY KEY".
Please help!
--
This message was sent by Atlassian JIRA
(v7.6.3#76005)