yujun777 commented on code in PR #71190:
URL: https://github.com/apache/doris/pull/71190#discussion_r4750064836
##########
fe/fe-core/src/main/java/org/apache/doris/nereids/trees/plans/commands/RefreshMTMVCommand.java:
##########
@@ -157,10 +158,14 @@ private void dryRunRefresh(ConnectContext ctx,
StmtExecutor executor) throws Exc
ConnectContext createDryRunConnectContext(MTMV mtmv) throws UserException {
// Read once, so the group that is checked is the group that is bound.
Optional<String> declaredComputeGroup = mtmv.getComputeGroup();
- ConnectContext internalCtx = createRefreshContext(mtmv,
declaredComputeGroup);
- // Like MTMVTask, only a declared group is re-checked: the MV never
chose the session's group.
+ ConnectContext internalCtx = createRefreshContext(mtmv,
declaredComputeGroup,
+ refreshMTMVInfo.getSessionVariables());
Review Comment:
Fixed in 9d20a58ac53. Added a volatile statement-scoped query timeout
override (`statementQueryTimeoutOverrideS`) on `ConnectContext` (checked in
`getQueryTimeoutS` after user-level timeout properties) and aligned it in
`RefreshMTMVCommand.dryRunRefresh` whenever `REFRESH` hints override
`query_timeout` or `max_execution_time`, restoring the previous value
unconditionally in `finally`. Added unit test coverage invoking
`ConnectContext.checkTimeout` during dry run and verifying caller restoration
on both normal and failure paths in
`RefreshMTMVCommandTest.testDryRunOuterTimeoutAlignsWithRefreshHintAndRestoresCaller`.
--
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]