analyze_time_dim.sql.sql 378 B

12345678910
  1. -- Use filesystem to track stats.
  2. set hive.stats.dbclass=fs;
  3. -- Many tables have some missing partitions, deal with this by ignoring errors.
  4. set hive.cli.errors.ignore=true;
  5. ANALYZE TABLE time_dim COMPUTE STATISTICS;
  6. ANALYZE TABLE time_dim COMPUTE STATISTICS FOR COLUMNS
  7. t_time_sk, t_time_id, t_time, t_hour, t_minute, t_second,
  8. t_am_pm, t_shift, t_sub_shift, t_meal_time;