Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 3 additions & 1 deletion be/src/pipeline/exec/schema_scan_operator.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -71,7 +71,9 @@ SchemaScanOperatorX::SchemaScanOperatorX(ObjectPool* pool, const TPlanNode& tnod
_common_scanner_param(new SchemaScannerCommonParam()),
_tuple_id(tnode.schema_scan_node.tuple_id),
_tuple_idx(0),
_slot_num(0) {}
_slot_num(0) {
Base::_is_serial_operator = tnode.__isset.is_serial_operator && tnode.is_serial_operator;
}

Status SchemaScanOperatorX::init(const TPlanNode& tnode, RuntimeState* state) {
RETURN_IF_ERROR(Base::init(tnode, state));
Expand Down
8 changes: 8 additions & 0 deletions regression-test/suites/query_p0/system/test_query_sys.groovy
Original file line number Diff line number Diff line change
Expand Up @@ -54,4 +54,12 @@ suite("test_query_sys", "query,p0") {
sql "select * from http_stream('format'='csv');"
exception "No Alive backends"
}

// `workload_group_resource_usage` will be refresh 30s after BE startup so sleep 30s to get a stable result
sleep(30000)
sql """set parallel_pipeline_task_num=8"""
def rows1 = sql """ select count(*) from information_schema.workload_group_resource_usage; """
sql """set parallel_pipeline_task_num=1"""
def rows2 = sql """ select count(*) from information_schema.workload_group_resource_usage; """
assertEquals(rows1, rows2)
}
Loading