analyze_reason.sql.sql 312 B

123456789
  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 reason COMPUTE STATISTICS;
  6. ANALYZE TABLE reason COMPUTE STATISTICS FOR COLUMNS
  7. r_reason_sk, r_reason_id, r_reason_desc;