Skip to content

Commit

Permalink
[Fix](group commit) Fix group commit exception in nereids planner (ap…
Browse files Browse the repository at this point in the history
  • Loading branch information
Yukang-Lian authored Jul 18, 2024
1 parent c64f804 commit 3d3ceae
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 8 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -1669,7 +1669,7 @@ public void setEnableLeftZigZag(boolean enableLeftZigZag) {
@VariableMgr.VarAttr(name = LOAD_STREAM_PER_NODE)
public int loadStreamPerNode = 2;

@VariableMgr.VarAttr(name = GROUP_COMMIT)
@VariableMgr.VarAttr(name = GROUP_COMMIT, needForward = true)
public String groupCommit = "off_mode";

@VariableMgr.VarAttr(name = INVERTED_INDEX_CONJUNCTION_OPT_THRESHOLD,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -717,13 +717,6 @@ private void executeByNereids(TUniqueId queryId) throws Exception {
+ Env.getCurrentEnv().getSelfNode().getHost() + ") and failed to execute"
+ " because Master FE is not ready. You may need to check FE's status"));
}
if (context.getSessionVariable().isEnableInsertGroupCommit()) {
// FIXME: Group commit insert does not need to forward to master
// Nereids does not support group commit, so we can not judge if should forward
// Here throw an exception to fallback to legacy planner and let legacy judge if should forward
// After Nereids support group commit, we can remove this exception
throw new NereidsException(new UserException("Nereids does not support group commit insert"));
}
forwardToMaster();
if (masterOpExecutor != null && masterOpExecutor.getQueryId() != null) {
context.setQueryId(masterOpExecutor.getQueryId());
Expand Down

0 comments on commit 3d3ceae

Please sign in to comment.