Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

HIVE Creating Table not null

this is my query in DB2 Database:

CREATE TABLE MY_TABLE                                                 
      (COD_SOC              CHAR(5)  NOT NULL); 

Is possible reproduce the 'NOT NULL' in HIVE? What about PIG?

like image 861
Edge7 Avatar asked Feb 12 '23 07:02

Edge7


1 Answers

No it is not possible at this time. It would be very difficult for Hive to enforce column constraints.

like image 198
Mike Park Avatar answered Feb 19 '23 01:02

Mike Park