This is an automated email from the ASF dual-hosted git repository.
yiguolei pushed a commit to branch branch-2.1
in repository https://gitbox.apache.org/repos/asf/doris.git
The following commit(s) were added to refs/heads/branch-2.1 by this push:
new 12039049f3b branch-2.1: [fix](nereids) insert task should set
isNereids to true in ConnectContext (#54199)
12039049f3b is described below
commit 12039049f3b3b340c5bd2db741436bdd1f7f05dc
Author: starocean999 <[email protected]>
AuthorDate: Thu Aug 7 14:03:19 2025 +0800
branch-2.1: [fix](nereids) insert task should set isNereids to true in
ConnectContext (#54199)
pick https://github.com/apache/doris/pull/53919
### What problem does this PR solve?
Issue Number: close #xxx
Related PR: #xxx
Problem Summary:
### Release note
None
### Check List (For Author)
- Test <!-- At least one of them must be included. -->
- [ ] Regression test
- [ ] Unit Test
- [ ] Manual test (add detailed scripts or steps below)
- [ ] No need to test or manual test. Explain why:
- [ ] This is a refactor/code format and no logic has been changed.
- [ ] Previous test can cover this change.
- [ ] No code files have been changed.
- [ ] Other reason <!-- Add your reason? -->
- Behavior changed:
- [ ] No.
- [ ] Yes. <!-- Explain the behavior change -->
- Does this need documentation?
- [ ] No.
- [ ] Yes. <!-- Add document PR link here. eg:
https://github.com/apache/doris-website/pull/1214 -->
### Check List (For Reviewer who merge this PR)
- [ ] Confirm the release note
- [ ] Confirm test cases
- [ ] Confirm document
- [ ] Add branch pick label <!-- Add branch pick label that this PR
should merge into -->
---
.../src/main/java/org/apache/doris/job/extensions/insert/InsertTask.java | 1 +
1 file changed, 1 insertion(+)
diff --git
a/fe/fe-core/src/main/java/org/apache/doris/job/extensions/insert/InsertTask.java
b/fe/fe-core/src/main/java/org/apache/doris/job/extensions/insert/InsertTask.java
index 728f603d607..9f6f4baa697 100644
---
a/fe/fe-core/src/main/java/org/apache/doris/job/extensions/insert/InsertTask.java
+++
b/fe/fe-core/src/main/java/org/apache/doris/job/extensions/insert/InsertTask.java
@@ -154,6 +154,7 @@ public class InsertTask extends AbstractTask {
ctx.setQualifiedUser(userIdentity.getQualifiedUser());
ctx.setCurrentUserIdentity(userIdentity);
ctx.getState().reset();
+ ctx.getState().setNereids(true);
ctx.setThreadLocalInfo();
if (StringUtils.isNotEmpty(currentDb)) {
ctx.setDatabase(currentDb);
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]