HQL对sql语句的扩展,可以定义表的数据文件存储在什么位置,以及定义表文件存储格式。
create table if not exists hives.employees(
name string comment 'employee name',
salary float comment 'employee salary',
subordinates array<string> comment 'names of subordinates',
deducations map<string,float> comment 'Keys-value',
address struct <street:string,city:string,state:string,zip:int> comment 'home address')
comment 'Description of the table'
tblproperties('creator'='me','create_at'='20170424')
location '/user/hive/warehouse/hives.db/employees'