CREATE EXTERNAL TABLE dwh.ods_adn_adx_req_tmp(
   request_id string ,
   device_id string comment 'idfa',
   device_type string comment 'gaid or idfa',
   platform string comment 'android or ios',
   device_model string,
   os_version string,
   country string comment '',
   price_raw  string comment '',
   `date` string ,
)
PARTITIONED BY (
  dt string
)
STORED AS orc
LOCATION 's3://mob-emr-test/dataplatform/DataWareHouse/data/dwh/ods_adn_adx_req_tmp';


CREATE EXTERNAL TABLE dwh.dim_adn_adx_package(
   package_name string
)
PARTITIONED BY (
  dt string
)
STORED AS TEXTFILE
LOCATION 's3://mob-emr-test/dataplatform/DataWareHouse/data/dwh/dim_adn_adx_package';

CREATE EXTERNAL TABLE dwh.adn_adx_device_tag(
   device_id string comment 'idfa',
   device_type string comment 'gaid or idfa',
   platform string comment 'android or ios',
   device_model string,
   os_version string,
   country string comment '',
   gender string comment '',
   package_name string comment '',
   tag string,
   price  string comment '',
   `date` string
)
PARTITIONED BY (
  dt string
)
STORED AS orc
LOCATION 's3://mob-emr-test/dataplatform/DataWareHouse/data/dwh/adn_adx_device_tag';