Skip to content

Commit

Permalink
[Enhancement]Set the parallelism of low-cardinality field tasks to 1 (#…
Browse files Browse the repository at this point in the history
…31249) (#31314)

Signed-off-by: trueeyu <[email protected]>
  • Loading branch information
trueeyu authored Sep 18, 2023
1 parent 8e26374 commit 384ba23
Showing 1 changed file with 3 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -174,6 +174,9 @@ public static Pair<List<TStatisticData>, Status> queryDictSync(Long dbId, Long t
" from " + StatisticUtils.quoting(catalogName, db.getOriginName(), table.getName()) + " [_META_]";

ConnectContext context = StatisticUtils.buildConnectContext();
// The parallelism degree of low-cardinality dict collect task is uniformly set to 1 to
// prevent collection tasks from occupying a large number of be execution threads and scan threads.
context.getSessionVariable().setPipelineDop(1);
context.setThreadLocalInfo();
StatementBase parsedStmt = SqlParser.parseOneWithStarRocksDialect(sql, context.getSessionVariable());

Expand Down

0 comments on commit 384ba23

Please sign in to comment.