This is an automated email from the ASF dual-hosted git repository.
morningman pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/doris.git
The following commit(s) were added to refs/heads/master by this push:
new 5f48ac77b8c [Fix](Nereids) fix fe ut failed cause of getting statement
context (#29683)
5f48ac77b8c is described below
commit 5f48ac77b8cce556885fc299e948a0b3e5e593a6
Author: LiBinfeng <[email protected]>
AuthorDate: Mon Jan 8 22:12:11 2024 +0800
[Fix](Nereids) fix fe ut failed cause of getting statement context (#29683)
Problem:
fe ut failed cause of null pointer error
Cause:
fe ut getting statement context from connection context failed
Resolved:
add null pointer judgement
---
.../main/java/org/apache/doris/nereids/parser/LogicalPlanBuilder.java | 1 +
1 file changed, 1 insertion(+)
diff --git
a/fe/fe-core/src/main/java/org/apache/doris/nereids/parser/LogicalPlanBuilder.java
b/fe/fe-core/src/main/java/org/apache/doris/nereids/parser/LogicalPlanBuilder.java
index f13cc8b69cb..0d4c6ea4bf6 100644
---
a/fe/fe-core/src/main/java/org/apache/doris/nereids/parser/LogicalPlanBuilder.java
+++
b/fe/fe-core/src/main/java/org/apache/doris/nereids/parser/LogicalPlanBuilder.java
@@ -2773,6 +2773,7 @@ public class LogicalPlanBuilder extends
DorisParserBaseVisitor<Object> {
}
if (distributeHint.distributeType != DistributeType.NONE
+ && ConnectContext.get().getStatementContext() != null
&&
!ConnectContext.get().getStatementContext().getHints().contains(distributeHint))
{
ConnectContext.get().getStatementContext().addHint(distributeHint);
}
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]