drop table dm_device_tag;
create external table dm_device_tag (
  device_id string comment 'device id',
  device_type string comment 'gaid or idfa',
  platform string comment 'platform',
  package_name string comment 'install pacakge name',
  tag_type string comment 'category、theme、style、experience',
  first_tag string comment 'first level tag',
  second_tag string comment 'second level tag',
  update_date string comment '更新时间，yyyy-MM-dd'
)
partitioned by (
dt string comment '分区字段，yyyyMMdd',
source string comment '数据来源, manual、dc、toutiao、external',
business string comment '业务或第三方DMP名称')
stored as orc
location 's3://mob-emr-test/dataplatform/DataWareHouse/data/dwh/dm_device_tag';