customer_demographics.sql 540 B

12345678910111213141516171819
  1. create database if not exists ${DB};
  2. use ${DB};
  3. drop table if exists customer_demographics;
  4. create external table customer_demographics
  5. (
  6. cd_demo_sk int,
  7. cd_gender string,
  8. cd_marital_status string,
  9. cd_education_status string,
  10. cd_purchase_estimate int,
  11. cd_credit_rating string,
  12. cd_dep_count int,
  13. cd_dep_employed_count int,
  14. cd_dep_college_count int
  15. )
  16. row format delimited fields terminated by '|'
  17. location '${LOCATION}';