You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
fix(query): attach table should not collect statistics in system.columns (#18310)
**Solution:**
1. **Disable Column Statistics Collection for Attached Tables by Default:** To improve `system.columns` query performance and prevent collecting statistics based on potentially inaccurate snapshots, we will, by default, disable column statistics collection for attached tables.
2. **Introduce New Setting `enable_collect_column_statistics`:** This new setting provides granular control over column statistics collection behavior.
* **Default Value:** `1` (enables statistics collection, but attached tables remain subject to the aforementioned restriction).
* **Disable:** Setting it to `0` will completely stop column statistics collection for all tables within `system.columns` (including non-attached tables), further boosting performance.
* **Configuration:** `SET GLOBAL enable_collect_column_statistics = [0|1];`
0 commit comments