[Optimize] optimize some session variable and profile (#6920)

1. optimize error message when using batch delete
2. rename session variable is_report_success to enable_profile
3. add table name to OlapScanner profile
This commit is contained in:
Zhengguo Yang
2021-10-27 18:03:12 +08:00
committed by GitHub
parent a4a7e642b4
commit 4170aabf83
22 changed files with 70 additions and 44 deletions

View File

@ -96,7 +96,11 @@ Status OlapScanNode::init(const TPlanNode& tnode, RuntimeState* state) {
}
void OlapScanNode::init_scan_profile() {
_scanner_profile.reset(new RuntimeProfile("OlapScanner"));
std::string scanner_profile_name = "OlapScanner";
if (_olap_scan_node.__isset.table_name) {
scanner_profile_name = fmt::format("OlapScanner({0})", _olap_scan_node.table_name);
}
_scanner_profile.reset(new RuntimeProfile(scanner_profile_name));
runtime_profile()->add_child(_scanner_profile.get(), true, NULL);
_segment_profile.reset(new RuntimeProfile("SegmentIterator"));