stats: set the default analyze column options to all
What problem does this PR solve?
Issue Number: ref https://github.com/pingcap/tidb/issues/64992
Problem Summary:
What changed and how does it work?
Set the default analysis column options to all temporarily.
Check List
Tests
- [x] Unit test
- [ ] Integration test
- [ ] Manual test (add detailed scripts or steps below)
- [ ] No need to test
- [ ] I checked and no code files have been changed.
Side effects
- [ ] Performance regression: Consumes more CPU
- [ ] Performance regression: Consumes more Memory
- [ ] Breaking backward compatibility
Documentation
- [ ] Affects user behaviors
- [ ] Contains syntax changes
- [ ] Contains variable changes
- [ ] Contains experimental features
- [ ] Changes MySQL compatibility
Release note
Please refer to Release Notes Language Style Guide to write a quality release note.
None
Codecov Report
:white_check_mark: All modified and coverable lines are covered by tests.
:white_check_mark: Project coverage is 71.2752%. Comparing base (f51be60) to head (3fcd53f).
:warning: Report is 3 commits behind head on master.
Additional details and impacted files
@@ Coverage Diff @@
## master #64994 +/- ##
================================================
+ Coverage 70.9069% 71.2752% +0.3683%
================================================
Files 1888 1888
Lines 515663 515852 +189
================================================
+ Hits 365641 367675 +2034
+ Misses 125615 123855 -1760
+ Partials 24407 24322 -85
| Flag | Coverage Δ | |
|---|---|---|
| integration | 48.2915% <0.0000%> (+0.1429%) |
:arrow_up: |
| unit | 66.0508% <100.0000%> (+0.4200%) |
:arrow_up: |
Flags with carried forward coverage won't be shown. Click here to find out more.
| Components | Coverage Δ | |
|---|---|---|
| dumpling | 52.8700% <ø> (ø) |
|
| parser | ∅ <ø> (∅) |
|
| br | 59.7087% <ø> (+0.2862%) |
:arrow_up: |
:rocket: New features to boost your workflow:
- :snowflake: Test Analytics: Detect flaky tests, report on failures, and find test suite problems.
- :package: JS Bundle Analysis: Save yourself from yourself by tracking and limiting bundle sizes in JS merges.
/retest
/retest
/retest
/retest
/retest
/retest
/retest
/retest
Test locally for upgrade from v8.5.4:
tiup playground v8.5.4 --tag predicate- Check the vars:
select @@global.tidb_analyze_column_options;
+--------------------------------------+
| @@global.tidb_analyze_column_options |
+--------------------------------------+
| PREDICATE |
+--------------------------------------+
- Upgrade to the patch version:
tiup playground v8.5.4 --db.binpath /Users/poe/code/tidb/bin/tidb-server --tag predicate - check vars again:
select @@global.tidb_analyze_column_options;
+--------------------------------------+
| @@global.tidb_analyze_column_options |
+--------------------------------------+
| PREDICATE |
+--------------------------------------+
Test locally for new cluster:
tiup playground v8.5.4 --db.binpath /Users/poe/code/tidb/bin/tidb-server- Check vars:
select @@global.tidb_analyze_column_options;
+--------------------------------------+
| @@global.tidb_analyze_column_options |
+--------------------------------------+
| ALL |
+--------------------------------------+
Test locally for upgrade from v8.2.0:
tiup playground v8.2.0 --tag predicate-8.2.0- Check vars:
TiDB [email protected]:(none)> select @@global.tidb_analyze_column_options;
(1193, "Unknown system variable 'tidb_analyze_column_options'")
- Upgrade to the patch version:
tiup playground v8.2.0 --db.binpath /Users/poe/code/tidb/bin/tidb-server --tag predicate-8.2.0 - Check vars:
select @@global.tidb_analyze_column_options;
+--------------------------------------+
| @@global.tidb_analyze_column_options |
+--------------------------------------+
| ALL |
+--------------------------------------+
/retest
/retest
/retest
/retest
/retest
/cc @terry1purcell @fixdb
/test ?
@purelind: The following commands are available to trigger required jobs:
/test build
/test check-dev
/test check-dev2
/test mysql-test
/test pull-br-integration-test
/test pull-build-next-gen
/test pull-integration-ddl-test
/test pull-integration-e2e-test
/test pull-integration-realcluster-test-next-gen
/test pull-lightning-integration-test
/test pull-mysql-client-test
/test pull-mysql-client-test-next-gen
/test pull-unit-test-ddlv1
/test pull-unit-test-next-gen
/test unit-test
The following commands are available to trigger optional jobs:
/test pingcap/tidb/canary_ghpr_unit_test
/test pull-br-integration-test-next-gen
/test pull-check-deps
/test pull-common-test
/test pull-e2e-test
/test pull-error-log-review
/test pull-integration-common-test
/test pull-integration-copr-test
/test pull-integration-ddl-test-next-gen
/test pull-integration-e2e-test-next-gen
/test pull-integration-jdbc-test
/test pull-integration-mysql-test
/test pull-integration-nodejs-test
/test pull-integration-python-orm-test
/test pull-mysql-test-next-gen
/test pull-sqllogic-test
/test pull-tiflash-integration-test
Use /test all to run the following jobs that were automatically triggered:
pingcap/tidb/ghpr_build
pingcap/tidb/ghpr_check
pingcap/tidb/ghpr_check2
pingcap/tidb/ghpr_mysql_test
pingcap/tidb/ghpr_unit_test
pingcap/tidb/pull_br_integration_test
pingcap/tidb/pull_build_next_gen
pingcap/tidb/pull_integration_ddl_test
pingcap/tidb/pull_integration_e2e_test
pingcap/tidb/pull_integration_realcluster_test_next_gen
pingcap/tidb/pull_lightning_integration_test
pingcap/tidb/pull_mysql_client_test
pingcap/tidb/pull_mysql_client_test_next_gen
pingcap/tidb/pull_unit_test_next_gen
pull-check-deps
pull-error-log-review
In response to this:
/test ?
Instructions for interacting with me using PR comments are available here. If you have questions or suggestions related to my behavior, please file an issue against the kubernetes-sigs/prow repository.
@purelind: The following commands are available to trigger required jobs:
/test fast_test_tiprow/test tidb_parser_test
Use /test all to run all jobs.
In response to this:
/test ?
Instructions for interacting with me using PR comments are available here. If you have questions or suggestions related to my behavior, please file an issue against the kubernetes-sigs/prow repository.
@ti-chi-bot[bot]: The specified target(s) for /test were not found.
The following commands are available to trigger required jobs:
/test fast_test_tiprow/test tidb_parser_test
Use /test all to run all jobs.
In response to this:
@purelind: The following commands are available to trigger required jobs:
/test build/test check-dev/test check-dev2/test mysql-test/test pull-br-integration-test/test pull-build-next-gen/test pull-integration-ddl-test/test pull-integration-e2e-test/test pull-integration-realcluster-test-next-gen/test pull-lightning-integration-test/test pull-mysql-client-test/test pull-mysql-client-test-next-gen/test pull-unit-test-ddlv1/test pull-unit-test-next-gen/test unit-testThe following commands are available to trigger optional jobs:
/test pingcap/tidb/canary_ghpr_unit_test/test pull-br-integration-test-next-gen/test pull-check-deps/test pull-common-test/test pull-e2e-test/test pull-error-log-review/test pull-integration-common-test/test pull-integration-copr-test/test pull-integration-ddl-test-next-gen/test pull-integration-e2e-test-next-gen/test pull-integration-jdbc-test/test pull-integration-mysql-test/test pull-integration-nodejs-test/test pull-integration-python-orm-test/test pull-mysql-test-next-gen/test pull-sqllogic-test/test pull-tiflash-integration-testUse
/test allto run the following jobs that were automatically triggered:pingcap/tidb/ghpr_buildpingcap/tidb/ghpr_checkpingcap/tidb/ghpr_check2pingcap/tidb/ghpr_mysql_testpingcap/tidb/ghpr_unit_testpingcap/tidb/pull_br_integration_testpingcap/tidb/pull_build_next_genpingcap/tidb/pull_integration_ddl_testpingcap/tidb/pull_integration_e2e_testpingcap/tidb/pull_integration_realcluster_test_next_genpingcap/tidb/pull_lightning_integration_testpingcap/tidb/pull_mysql_client_testpingcap/tidb/pull_mysql_client_test_next_genpingcap/tidb/pull_unit_test_next_genpull-check-depspull-error-log-reviewIn response to this:
/test ?
Instructions for interacting with me using PR comments are available here. If you have questions or suggestions related to my behavior, please file an issue against the kubernetes-sigs/prow repository.
Instructions for interacting with me using PR comments are available here. If you have questions or suggestions related to my behavior, please file an issue against the kubernetes-sigs/prow repository.
/retest
/retest
[LGTM Timeline notifier]
Timeline:
2025-12-12 11:24:56.56573121 +0000 UTC m=+1213041.379508781: :ballot_box_with_check: agreed by Leavrth.2025-12-12 22:06:47.814235419 +0000 UTC m=+1251552.628012991: :ballot_box_with_check: agreed by terry1purcell.
[APPROVALNOTIFIER] This PR is APPROVED
This pull-request has been approved by: fixdb, Leavrth, terry1purcell, yudongusa
The full list of commands accepted by this bot can be found here.
The pull request process is described here
- ~~OWNERS~~ [Leavrth,fixdb,terry1purcell]
- ~~br/OWNERS~~ [Leavrth]
- ~~pkg/planner/OWNERS~~ [fixdb,terry1purcell]
- ~~pkg/session/OWNERS~~ [yudongusa]
- ~~pkg/sessionctx/vardef/OWNERS~~ [yudongusa]
- ~~pkg/statistics/OWNERS~~ [terry1purcell]
Approvers can indicate their approval by writing /approve in a comment
Approvers can cancel approval by writing /approve cancel in a comment
/retest
/retest
In response to a cherrypick label: new pull request created to branch release-8.5: #65015.
But this PR has conflicts, please resolve them!