diff --git a/fe/fe-core/src/main/java/org/apache/doris/nereids/NereidsPlanner.java b/fe/fe-core/src/main/java/org/apache/doris/nereids/NereidsPlanner.java index 4612f21b29d27e7..6dc75f2632f8b08 100644 --- a/fe/fe-core/src/main/java/org/apache/doris/nereids/NereidsPlanner.java +++ b/fe/fe-core/src/main/java/org/apache/doris/nereids/NereidsPlanner.java @@ -415,7 +415,7 @@ public String getExplainString(ExplainOptions explainOptions) { default: plan = super.getExplainString(explainOptions); } - if (!cascadesContext.getStatementContext().getHintMap().isEmpty()) { + if (!statementContext.getHintMap().isEmpty()) { String hint = getHintExplainString(cascadesContext.getStatementContext().getHintMap()); return plan + hint; }