[opt](profile) Disable show query/load profile stmt#32467
[opt](profile) Disable show query/load profile stmt#32467yiguolei merged 4 commits intoapache:masterfrom
Conversation
|
Thank you for your contribution to Apache Doris. Since 2024-03-18, the Document has been moved to doris-website. |
|
run compile |
|
run compile |
|
run buildall |
| String selfHost = Env.getCurrentEnv().getSelfNode().getHost(); | ||
| int httpPort = Config.http_port; | ||
| String terminalMsg = String.format( | ||
| "try visit http://%s:%d/QueryProfile, show query/load profile syntax is a deprecated feature", |
There was a problem hiding this comment.
how to ensure it could return a visitable url for user. for example, doris behind a net gateway, and user have no access privilege for it
There was a problem hiding this comment.
how to ensure it could return a visitable url for user. for example, doris behind a net gateway, and user have no access privilege for it
no guarantee for now. this can be fixed by introduce a new syntax like explain analyze
|
PR approved by at least one committer and no changes requested. |
|
PR approved by anyone and no changes requested. |
show query/load profile from terminal is actually not a well maintained feature, and our execution model changed a lot in 2.1 which introduced new execution engine, it will cost much to keep show profile stmt work with new execution engine.
So, we disable it, and user will get a prompt to guide them get profile from web browser like bellow
TODO: maybe we need explain analyze like https://dev.mysql.com/blog-archive/mysql-explain-analyze/