CREATE  EXTERNAL TABLE dm_device_gender
PARTITIONED BY (
  year string,
  month string,
  day string
) ROW FORMAT SERDE 'mobvista.dataplatform.text.TextSerde'
STORED AS TEXTFILE
LOCATION 's3://mob-emr-test/dataplatform/DataWareHouse/data/dwh/dm_device_gender'
TBLPROPERTIES (
  'schema.url'='s3://mob-emr-test/dataplatform/DataWareHouse/schema/dwh/dm_device_gender/dm_device_gender.avsc'
);
