ANALYZE TABLE... DROP STATISTICS

Şunun için geçerlidir:evet olarak işaretlendi Databricks SQL evet olarak işaretlendi Databricks Runtime 18.1 ve üzeri

komutu, ANALYZE TABLE … DROP STATISTICS Unity Kataloğu tablosundan iyileştirici istatistiklerini kaldırır. Eski veya yanlış istatistikleri temizlemek için bu komutu kullanın, böylece sorgu iyileştirici artık bunlara dayanmaz. Yeni istatistikler toplamak için bkz ANALYZE TABLE . ... İŞLEM ISTATISTIKLERI.

Syntax

ANALYZE TABLE table_name DROP [ MANUAL | AUTO | ALL ] STATISTICS

Parameters

Requirements

  • Tablo Unity Kataloğu'nda kayıtlı olmalıdır. Hive meta veri deposu tablosunda bu komutun çalıştırılması bir AnalysisExceptionoluşturur.
  • Tabloda ayrıcalığınız olmalıdır MODIFY .

Examples

-- Drop only manual statistics. This is the default behavior.
> ANALYZE TABLE main.sales.orders DROP STATISTICS;

-- Drop only statistics collected by auto-stats or predictive optimization.
> ANALYZE TABLE main.sales.orders DROP AUTO STATISTICS;

-- Drop all statistics for the table.
> ANALYZE TABLE main.sales.orders DROP ALL STATISTICS;