analyze_web_page.sql.sql 499 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 web_page COMPUTE STATISTICS;
  6. ANALYZE TABLE web_page COMPUTE STATISTICS FOR COLUMNS
  7. wp_web_page_sk, wp_web_page_id, wp_rec_start_date,
  8. wp_rec_end_date, wp_creation_date_sk, wp_access_date_sk,
  9. wp_autogen_flag, wp_customer_sk, wp_url, wp_type,
  10. wp_char_count, wp_link_count, wp_image_count, wp_max_ad_count;