-
Notifications
You must be signed in to change notification settings - Fork 3.4k
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
[Enhancement] (nereids)implement showSqlBlockRuleCommand in nereids #42979
Conversation
Thank you for your contribution to Apache Doris. Since 2024-03-18, the Document has been moved to doris-website. |
run buildall |
TPC-H: Total hot run time: 41433 ms
|
TPC-DS: Total hot run time: 196780 ms
|
ClickBench: Total hot run time: 31.98 s
|
} | ||
ShowSqlBlockRuleStmt showStmt = new ShowSqlBlockRuleStmt(ruleName); | ||
List<List<String>> rows = Lists.newArrayList(); | ||
List<SqlBlockRule> sqlBlockRules = Env.getCurrentEnv().getSqlBlockRuleMgr().getSqlBlockRule(showStmt); |
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.
pls add a new getSqlBlockRule function without dependence of ShowSqlBlockRuleStmt
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.
thanks. updated.
8e783db
to
e4a730a
Compare
run buildall |
TPC-H: Total hot run time: 41360 ms
|
TPC-DS: Total hot run time: 195637 ms
|
ClickBench: Total hot run time: 31.24 s
|
run p0 |
run external |
run buildall |
TPC-H: Total hot run time: 40886 ms
|
TPC-DS: Total hot run time: 195818 ms
|
ClickBench: Total hot run time: 32.66 s
|
3ff2c07
to
974cdf5
Compare
/** | ||
* Get SqlBlockRule by show command. | ||
**/ | ||
public List<SqlBlockRule> getSqlBlockRule(ShowSqlBlockRuleCommand cmd) throws AnalysisException { |
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.
better to use String as parameter and change the old code to call the new function to remove duplicate code
public List<SqlBlockRule> getSqlBlockRule(ShowSqlBlockRuleCommand cmd) throws AnalysisException { | |
public List<SqlBlockRule> getSqlBlockRule(String ruleName) throws AnalysisException { |
974cdf5
to
80dd59a
Compare
run buildall |
run p0 |
2 similar comments
run p0 |
run p0 |
run buildall |
5f9049a
to
b2d9d17
Compare
run buildall |
run p0 |
b2d9d17
to
70a6d5e
Compare
run buildall |
run buildall |
PR approved by at least one committer and no changes requested. |
PR approved by anyone and no changes requested. |
run buildall |
Proposed changes
Issue Number: close #42719
implement showSqlBlockRuleCommand in nereids