Skip to content

Commit

Permalink
[Fix](Nereids) fix fe ut failed cause of getting statement context (a…
Browse files Browse the repository at this point in the history
…pache#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
  • Loading branch information
LiBinfeng-01 authored Jan 8, 2024
1 parent 86fc193 commit 5f48ac7
Showing 1 changed file with 1 addition and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -2773,6 +2773,7 @@ private LogicalPlan withJoinRelations(LogicalPlan input, RelationContext ctx) {

}
if (distributeHint.distributeType != DistributeType.NONE
&& ConnectContext.get().getStatementContext() != null
&& !ConnectContext.get().getStatementContext().getHints().contains(distributeHint)) {
ConnectContext.get().getStatementContext().addHint(distributeHint);
}
Expand Down

0 comments on commit 5f48ac7

Please sign in to comment.