-
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
[opt](profile) Disable show query/load profile stmt #32467
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.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
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.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
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
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. |
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/