USE dwh;
CREATE EXTERNAL TABLE dwh.`dmp_package_tag`(
    package_name string,
    first_tag string,
    second_tag string,
    third_tag string
)PARTITIONED BY (
    dt string
) ROW FORMAT DELIMITED FIELDS TERMINATED BY ','
STORED AS TEXTFILE
LOCATION 's3://mob-emr-test/dataplatform/datawarehourse/dwh/dmp_package_tag';

ALTER TABLE dwh.dmp_package_tag ADD PARTITION (dt = '20200916') LOCATION 's3://mob-emr-test/dataplatform/datawarehourse/dwh/dmp_package_tag/2020/09/16';