Skip to content
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

branch-2.1: [fix](local shuffle) Set serial execution for schema scan operator #47498 #47527

Closed
wants to merge 1 commit into from
Closed
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 @@ -83,7 +83,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
Original file line number Diff line number Diff line change
Expand Up @@ -53,4 +53,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