[improvement](Load) Cancel the load job ASAP when encounter unqualified data (#6319)
This PR mainly changes:
1. Help to Cancel the load job ASAP when encounter unqualified data.
Solution is described in #6318 .
Also replace some std::stringstream with fmt::memory_buffer to avoid performance issues.
2. fix a NPE bug when create user with empty host
3. fix compile warning after rebasing the master(vectorization)
This commit is contained in:
@ -29,7 +29,6 @@
|
||||
#include "exec/assert_num_rows_node.h"
|
||||
#include "exec/broker_scan_node.h"
|
||||
#include "exec/cross_join_node.h"
|
||||
#include "exec/csv_scan_node.h"
|
||||
#include "exec/empty_set_node.h"
|
||||
#include "exec/es_http_scan_node.h"
|
||||
#include "exec/es_scan_node.h"
|
||||
@ -41,7 +40,6 @@
|
||||
#include "exec/merge_node.h"
|
||||
#include "exec/mysql_scan_node.h"
|
||||
#include "exec/odbc_scan_node.h"
|
||||
#include "exec/olap_rewrite_node.h"
|
||||
#include "exec/olap_scan_node.h"
|
||||
#include "exec/partitioned_aggregation_node.h"
|
||||
#include "exec/repeat_node.h"
|
||||
@ -407,10 +405,6 @@ Status ExecNode::create_node(RuntimeState* state, ObjectPool* pool, const TPlanN
|
||||
|
||||
VLOG_CRITICAL << "tnode:\n" << apache::thrift::ThriftDebugString(tnode);
|
||||
switch (tnode.node_type) {
|
||||
case TPlanNodeType::CSV_SCAN_NODE:
|
||||
*node = pool->add(new CsvScanNode(pool, tnode, descs));
|
||||
return Status::OK();
|
||||
|
||||
case TPlanNodeType::MYSQL_SCAN_NODE:
|
||||
#ifdef DORIS_WITH_MYSQL
|
||||
if (state->enable_vectorized_exec()) {
|
||||
@ -513,10 +507,6 @@ Status ExecNode::create_node(RuntimeState* state, ObjectPool* pool, const TPlanN
|
||||
}
|
||||
return Status::OK();
|
||||
|
||||
case TPlanNodeType::OLAP_REWRITE_NODE:
|
||||
*node = pool->add(new OlapRewriteNode(pool, tnode, descs));
|
||||
return Status::OK();
|
||||
|
||||
case TPlanNodeType::SORT_NODE:
|
||||
if (state->enable_vectorized_exec()) {
|
||||
*node = pool->add(new vectorized::VSortNode(pool, tnode, descs));
|
||||
|
||||
Reference in New Issue
Block a user