feiniaofeiafei opened a new pull request, #68368: URL: https://github.com/apache/doris/pull/68368
Backport #66354 to branch-4.2. A global scalar aggregate with non-empty partition expressions executes across BEs, but its cost was calculated as single-point because it has no GROUP BY keys. Account for partition expressions when scaling aggregate CPU and memory costs by the BE count. Adapt the unit test to the branch-4.2 CostWeight API and regenerate 25 affected shape expectations on branch-4.2. Also stabilize ClickBench query1 by disabling REWRITE_SIMPLE_AGG_TO_CONSTANT in that shape test: a warmed exact row-count cache otherwise replaces the aggregate with a constant and makes repeated runs fail. Validation: - FE build passed: NODE_OPTIONS=--openssl-legacy-provider ./build.sh --fe (Node/OpenSSL compatibility setting for the existing UI build). - CostModelV1Test: 4 tests passed. - shape_check load: 9 suites passed. - Full shape_check comparison after refresh: 992 suites passed, 0 failures, 0 skipped. -- This is an automated message from the Apache Git Service. To respond to the message, please log on to GitHub and use the URL above to go to the specific comment. To unsubscribe, e-mail: [email protected] For queries about this service, please contact Infrastructure at: [email protected] --------------------------------------------------------------------- To unsubscribe, e-mail: [email protected] For additional commands, e-mail: [email protected]
