-
Notifications
You must be signed in to change notification settings - Fork 5.9k
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
statistics: enable the auto-analysis priority queue #51537
statistics: enable the auto-analysis priority queue #51537
Conversation
Codecov Report
Additional details and impacted files@@ Coverage Diff @@
## master #51537 +/- ##
================================================
+ Coverage 70.7917% 72.8491% +2.0573%
================================================
Files 1467 1467
Lines 436397 436623 +226
================================================
+ Hits 308933 318076 +9143
+ Misses 108129 98577 -9552
- Partials 19335 19970 +635
Flags with carried forward coverage won't be shown. Click here to find out more.
|
bbbe3a1
to
405eb87
Compare
Signed-off-by: hi-rustin <[email protected]>
Signed-off-by: hi-rustin <[email protected]>
405eb87
to
2b566b2
Compare
Signed-off-by: hi-rustin <[email protected]>
Signed-off-by: hi-rustin <[email protected]>
Signed-off-by: hi-rustin <[email protected]>
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
🔢 Self-check (PR reviewed by myself and ready for feedback.)
Tested locally:
mysql> select tidb_version();
+--------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
| tidb_version() |
+--------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
| Release Version: v8.0.0-alpha-424-gd18713949c
Edition: Community
Git Commit Hash: d18713949ccbf81ab1b38efa48ea1ca9ee6c98d5
Git Branch: rustin-patch-enable-pq
UTC Build Time: 2024-03-07 06:19:15
GoVersion: go1.21.7
Race Enabled: false
Check Table Before Drop: false
Store: tikv |
+--------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
1 row in set (0.00 sec)
import pymysql
import random
# Connect to TiDB
conn = pymysql.connect(host='localhost', port=4000, user='root', passwd='', db='test')
cursor = conn.cursor()
# Create partitioned table
cursor.execute("""
CREATE TABLE users (
id INT NOT NULL,
name VARCHAR(50) NOT NULL,
age INT NOT NULL,
country VARCHAR(2) NOT NULL
)
PARTITION BY RANGE (age) (
PARTITION p0 VALUES LESS THAN (20),
PARTITION p1 VALUES LESS THAN (40),
PARTITION p2 VALUES LESS THAN (60)
);
""")
# Generate and insert data
for i in range(2000):
id = i
name = 'User {}'.format(i)
age = random.randint(15, 55)
country = random.choice(['US', 'CN', 'IN'])
cursor.execute("INSERT INTO users VALUES (%s, %s, %s, %s)", (id, name, age, country))
conn.commit()
print("Partitioned table created and data inserted successfully!")
conn.close()
|
/approve |
[APPROVALNOTIFIER] This PR is APPROVED This pull-request has been approved by: AilinKid, easonn7, qw4990 The full list of commands accepted by this bot can be found here. The pull request process is described here
Needs approval from an approver in each of these files:
Approvers can indicate their approval by writing |
@hi-rustin: The following test failed, say
Full PR test history. Your PR dashboard. 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/test-infra repository. I understand the commands that are listed here. |
/retest |
What problem does this PR solve?
Issue Number: ref #50132
Problem Summary:
What changed and how does it work?
I have enabled the auto-analysis priority queue by default. Also from this PR, the priority queue starts respecting the auto-analyze time window.
Check List
Tests
Side effects
Documentation
Release note
Please refer to Release Notes Language Style Guide to write a quality release note.