修改Hive表结构,Hive在增加字段的情况,不再修改重新表了
alter table stage.utrack add columns (imei string comment '手机IMEI' );
alter table stage.utrack add columns (mac string comment 'MAC地址' );
alter table stage.utrack add columns (longitude string comment '经度' );
alter table stage.utrack add columns (latitude string comment '纬度' );
alter table ods.utrack add columns (imei string comment '手机IMEI' );
alter table ods.utrack add columns (mac string comment 'MAC地址' );
alter table ods.utrack add columns (longitude string comment '经度' );
alter table ods.utrack add columns (latitude string comment '纬度' );
修改表的注释
ALTER TABLE SPECTER.NWD_LOG_PW_CUSTOM_TMP CHANGE type type string COMMENT '1:cpc 2:Search Engines 3:na';