-
Notifications
You must be signed in to change notification settings - Fork 3.7k
[Enchancement](statistics) Support sampling collection of statistics(discard) #18801
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
Conversation
|
TeamCity pipeline, clickbench performance test result: |
fe/fe-core/src/main/java/org/apache/doris/statistics/AnalysisManager.java
Outdated
Show resolved
Hide resolved
fe/fe-core/src/main/java/org/apache/doris/statistics/AnalysisManager.java
Outdated
Show resolved
Hide resolved
fe/fe-core/src/main/java/org/apache/doris/statistics/AnalysisManager.java
Outdated
Show resolved
Hide resolved
fe/fe-core/src/main/java/org/apache/doris/statistics/AnalysisTaskInfoBuilder.java
Outdated
Show resolved
Hide resolved
fe/fe-core/src/main/java/org/apache/doris/statistics/AnalysisManager.java
Outdated
Show resolved
Hide resolved
f76082c to
fb6c6e8
Compare
|
run buildall |
|
PR approved by anyone and no changes requested. |
a0c7988 to
3b95274
Compare
3b95274 to
323a8c3
Compare
|
run buildall |
|
run clickbench |
|
run p1 |
|
This pr rebase has been done several times, and the pipeline clickbench has been stuck (Can't connect to MySQL), using the new pr #18880 |
Proposed changes
The syntax supports WITH and PROPERTIES, using the same syntax as before.
Column Statistics Collection Syntax:
ANALYZE [ SYNC ] TABLE table_name [ (column_name [, ...]) ] [ [WITH SYNC] | [WITH INCREMENTAL] | [WITH SAMPLE PERCENT | ROWS ] ] [ PROPERTIES ('key' = 'value', ...) ];Column histogram collection syntax:
ANALYZE [ SYNC ] TABLE table_name [ (column_name [, ...]) ] UPDATE HISTOGRAM [ [ WITH SYNC ][ WITH INCREMENTAL ][ WITH SAMPLE PERCENT | ROWS ][ WITH BUCKETS ] ] [ PROPERTIES ('key' = 'value', ...) ];Illustrate:
db_name.table_name.table_name, and multiple column names are separated by commas.TODO:
Incrementalstatistics see pr18653Issue Number: close #xxx
Problem summary
Describe your changes.
Checklist(Required)
Further comments
If this is a relatively large or complex change, kick off the discussion at dev@doris.apache.org by explaining why you chose the solution you did and what alternatives you considered, etc...