analyze_store.sql.sql 688 B

12345678910111213141516
  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 store COMPUTE STATISTICS;
  6. ANALYZE TABLE store COMPUTE STATISTICS FOR COLUMNS
  7. s_store_sk, s_store_id, s_rec_start_date, s_rec_end_date,
  8. s_closed_date_sk, s_store_name, s_number_employees,
  9. s_floor_space, s_hours, s_manager, s_market_id,
  10. s_geography_class, s_market_desc, s_market_manager,
  11. s_division_id, s_division_name, s_company_id, s_company_name,
  12. s_street_number, s_street_name, s_street_type, s_suite_number,
  13. s_city, s_county, s_state, s_zip, s_country, s_gmt_offset,
  14. s_tax_precentage;