sollhui opened a new pull request, #64439:
URL: https://github.com/apache/doris/pull/64439

   ### What problem does this PR solve?
   
   When `INSERT INTO ... SELECT` is submitted to a follower FE, the statement 
is forwarded to the master FE for execution. In the proxy execution path, 
`StmtExecutor.parseByNereids()` only updated `StmtExecutor.parsedStmt`, but did 
not synchronize the parsed `LogicalPlanAdapter` back to the `ConnectContext`'s 
`StatementContext`.
   
   As a result, `EnvFactory.createCoordinator(..., jobId)` could misjudge that 
the Nereids distributed planner was unavailable and fall back to `Coordinator` 
/ `CloudCoordinator` without preserving the insert `jobId`. The insert load job 
was recorded as finished, but the coordinator never initialized or updated load 
progress for that job, so `SHOW LOAD` showed empty `JobDetails`, for example 
`ScannedRows=0`, `LoadBytes=0`, `TaskNumber=0`, and empty backend lists.
   
   This PR fixes the issue by:
   - synchronizing the parsed `LogicalPlanAdapter` statement context after 
Nereids parsing;
   - preserving `jobId` when falling back to the regular `Coordinator` / 
`CloudCoordinator` path.


-- 
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]

Reply via email to