Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

docs: add predicate columns feature design #53511

Merged
merged 35 commits into from
Jun 18, 2024
Merged
Changes from 1 commit
Commits
Show all changes
35 commits
Select commit Hold shift + click to select a range
e6a7905
docs: add predicate columns feature design
Rustin170506 May 23, 2024
f8346e8
docs: finish collection process
Rustin170506 May 27, 2024
fc459e6
docs: add auto-analyze
Rustin170506 May 28, 2024
7815d84
docs: cleanup
Rustin170506 May 28, 2024
0a45e50
docs: add global variable
Rustin170506 May 28, 2024
1b07d28
docs: add crdb and redshift
Rustin170506 May 28, 2024
c93199e
docs: add tests
Rustin170506 May 28, 2024
5f36915
docs: none
Rustin170506 May 28, 2024
bca1601
docs: add links
Rustin170506 May 28, 2024
71e4c6d
docs: intro
Rustin170506 May 28, 2024
f66551b
docs: fix typo
Rustin170506 May 28, 2024
6395b4b
docs: fix typo
Rustin170506 May 28, 2024
356a04e
docs: fix typo
Rustin170506 May 28, 2024
2669d6a
docs: better format
Rustin170506 May 28, 2024
1d08889
docs: add stats lease
Rustin170506 May 28, 2024
7e72d43
docs: fix typo
Rustin170506 May 28, 2024
bbbaffd
docs: fix typo
Rustin170506 May 28, 2024
1125a11
docs: clarify
Rustin170506 May 28, 2024
deb28ef
Update docs/design/2024-05-23-predicate-columns.md
Rustin170506 May 29, 2024
762eca9
No bold
Rustin170506 May 29, 2024
ec61447
docs: add corner case
Rustin170506 May 31, 2024
45e6fee
Update docs/design/2024-05-23-predicate-columns.md
Rustin170506 Jun 3, 2024
d8312a9
Update docs/design/2024-05-23-predicate-columns.md
Rustin170506 Jun 3, 2024
cc98d27
docs: add all columns
Rustin170506 Jun 3, 2024
f5e0532
docs: no difference
Rustin170506 Jun 3, 2024
846097b
docs: add all
Rustin170506 Jun 3, 2024
78a2595
docs: fix
Rustin170506 Jun 3, 2024
cbbd3a6
docs: add tidb_analyze_default_column_choice
Rustin170506 Jun 18, 2024
ee93a9c
fix: typo
Rustin170506 Jun 18, 2024
2d192ee
fix: typo
Rustin170506 Jun 18, 2024
464645c
docs: fix typo
Rustin170506 Jun 18, 2024
489e5c5
docs: fix typo
Rustin170506 Jun 18, 2024
11d2545
Update docs/design/2024-05-23-predicate-columns.md
Rustin170506 Jun 18, 2024
8baf1f8
Update docs/design/2024-05-23-predicate-columns.md
Rustin170506 Jun 18, 2024
dad0728
Update docs/design/2024-05-23-predicate-columns.md
Rustin170506 Jun 18, 2024
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
Update docs/design/2024-05-23-predicate-columns.md
Co-authored-by: Zhou Kunqin <25057648+time-and-fate@users.noreply.github.com>
  • Loading branch information
Rustin170506 and time-and-fate committed May 29, 2024
commit deb28ef0eecd6a85720e5c33be82b64c5fefc3d3
2 changes: 1 addition & 1 deletion docs/design/2024-05-23-predicate-columns.md
Original file line number Diff line number Diff line change
Expand Up @@ -189,7 +189,7 @@ We can focus on the `column_choice` column, which has three different column opt

As you can see, we pick PREDICATE as the column_choice for the ANALYZE TABLE t PREDICATE COLUMNS statement. At the same time, we now consider DEFAULT to be ALL, but to support predicate columns during auto-analyze, we need to change the definition of DEFAULT.

| Predicate Column Feature Status | Predicate Columns in `sys.sql_column_stats_us` | Meaning |
| Predicate Column Feature Status | Predicate Columns in `mysql.column_stats_usage` | Meaning |
|---------------------------------|------------------------------------------------|---------------------------------------------------------------|
| Enabled | Present | Use those predicate and indexed columns to analyze the table. |
| Enabled | Absent | Only analyze indexed columns of the table. |
Expand Down