time_dim.sql 551 B

1234567891011121314151617181920
  1. create database if not exists ${DB};
  2. use ${DB};
  3. drop table if exists time_dim;
  4. create external table time_dim
  5. (
  6. t_time_sk int,
  7. t_time_id string,
  8. t_time int,
  9. t_hour int,
  10. t_minute int,
  11. t_second int,
  12. t_am_pm string,
  13. t_shift string,
  14. t_sub_shift string,
  15. t_meal_time string
  16. )
  17. row format delimited fields terminated by '|'
  18. location '${LOCATION}';