-
Notifications
You must be signed in to change notification settings - Fork 3.3k
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
[Improvement][Audit] add sql type for query audit #37790
Conversation
Thank you for your contribution to Apache Doris. Since 2024-03-18, the Document has been moved to doris-website. |
run buildall |
5046679
to
e4fd3c4
Compare
run buildall |
TPC-H: Total hot run time: 40364 ms
|
TPC-DS: Total hot run time: 174639 ms
|
ClickBench: Total hot run time: 31.33 s
|
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.
LGTM
PR approved by at least one committer and no changes requested. |
PR approved by anyone and no changes requested. |
@@ -107,4 +108,8 @@ default DataTrait computeDataTrait() { | |||
void computeEqualSet(DataTrait.Builder builder); | |||
|
|||
void computeFd(DataTrait.Builder builder); | |||
|
|||
default StmtType stmtType() { | |||
return StmtType.OTHER; |
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.
do not give default impl, let it be abstract
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.
If it is changed to an abstract method, then all subclasses must implement this method, which is unnecessary
package org.apache.doris.analysis; | ||
|
||
public enum StmtType { | ||
DDL, |
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.
add comment
- clarifying the criteria for classifying a statement. for example we have DDL and CREATE, so when to use DDL directly, when to add a new type of DDL?
- sort and classify these types for easy read and maintain
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.
1.The reason for not simplifying the DDL type is that we can see more detailed SQL types. The reason for adding the DDL type is that if there are new DDL operations in the future, if there is no corresponding method implemented, it will be directly a DDL type.
2.done
run buildall |
1 similar comment
run buildall |
TPC-H: Total hot run time: 39780 ms
|
TPC-DS: Total hot run time: 173484 ms
|
ClickBench: Total hot run time: 30.44 s
|
run buildall |
TPC-H: Total hot run time: 40063 ms
|
TPC-DS: Total hot run time: 173089 ms
|
ClickBench: Total hot run time: 30.8 s
|
PR approved by at least one committer and no changes requested. |
run P0 |
run buildall |
TPC-H: Total hot run time: 39793 ms
|
TPC-DS: Total hot run time: 174722 ms
|
ClickBench: Total hot run time: 30.64 s
|
run buildall |
TPC-H: Total hot run time: 39550 ms
|
TPC-DS: Total hot run time: 172662 ms
|
ClickBench: Total hot run time: 31 s
|
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.
LGTM
PR approved by at least one committer and no changes requested. |
Co-authored-by: garenshi <[email protected]>
Proposed changes
Issue Number: close #xxx