analyze_warehouse.sql.sql 471 B

123456789101112
  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 warehouse COMPUTE STATISTICS;
  6. ANALYZE TABLE warehouse COMPUTE STATISTICS FOR COLUMNS
  7. w_warehouse_sk, w_warehouse_id, w_warehouse_name,
  8. w_warehouse_sq_ft, w_street_number, w_street_name,
  9. w_street_type, w_suite_number, w_city, w_county, w_state,
  10. w_zip, w_country, w_gmt_offset;