-
Notifications
You must be signed in to change notification settings - Fork 1.2k
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
Fix label tag expression toString function #5008
Changes from 10 commits
31b222b
28dec9a
2f513cf
cc5dd0a
616ab65
c0fa68f
12cd9fa
8e49bd2
8757886
9be5939
807d9f6
cff1d79
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -93,7 +93,8 @@ Status QueryInstance::validateAndOptimize() { | |
// Optimize the query, and get the execution plan. We should not pass the optimizer errors to user | ||
// since the message is often not easy to understand. Logging them is enough. | ||
if (auto status = findBestPlan(); !status.ok()) { | ||
LOG(ERROR) << "Error found in optimization stage: " << status.message(); | ||
LOG(ERROR) << "Error found in optimization stage for query: " << rctx->query() | ||
<< ", error: " << status.message(); | ||
return Status::Error( | ||
"There are some errors found in optimizer, " | ||
"please contact to the admin to learn more details"); | ||
Comment on lines
+96
to
100
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. The error message on line 100 is not appropriate, it does not prevent the error message from being passed to the user, and it is more confusing than the original error message. There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Actually, I am not sure what's the better way to handle the optimizer errors. I need to open an issue about this and research how to do that in other db. There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. |
||
|
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
:
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.
like the following format?