[chore](Nereids) load command always could fallback (#33233)

This commit is contained in:
morrySnow
2024-04-07 15:33:21 +08:00
committed by yiguolei
parent 14c5247fb7
commit b8d4a87703

View File

@ -125,6 +125,7 @@ public class LoadCommand extends Command implements ForwardWithSync {
@Override
public void run(ConnectContext ctx, StmtExecutor executor) throws Exception {
if (!Config.enable_nereids_load) {
ctx.getSessionVariable().enableFallbackToOriginalPlannerOnce();
throw new AnalysisException("Fallback to legacy planner temporary.");
}
this.profile = new Profile("Query", ctx.getSessionVariable().enableProfile,