Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -47,6 +47,9 @@ public Plan visitLogicalFileSink(LogicalFileSink<? extends Plan> fileSink, State

private void turnOffPipeline(StatementContext context) {
SessionVariable sessionVariable = context.getConnectContext().getSessionVariable();
if (sessionVariable.enableNereidsDmlWithPipeline) {
return;
}
// set temporary session value, and then revert value in the 'finally block' of StmtExecutor#execute
sessionVariable.setIsSingleSetVar(true);
try {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -189,6 +189,7 @@ public class SessionVariable implements Serializable, Writable {
public static final String MAX_JOIN_NUMBER_OF_REORDER = "max_join_number_of_reorder";

public static final String ENABLE_NEREIDS_DML = "enable_nereids_dml";
public static final String ENABLE_NEREIDS_DML_WITH_PIPELINE = "enable_nereids_dml_with_pipeline";
public static final String ENABLE_STRICT_CONSISTENCY_DML = "enable_strict_consistency_dml";

public static final String ENABLE_BUSHY_TREE = "enable_bushy_tree";
Expand Down Expand Up @@ -751,6 +752,10 @@ public class SessionVariable implements Serializable, Writable {
@VariableMgr.VarAttr(name = ENABLE_NEREIDS_DML, needForward = true)
public boolean enableNereidsDML = false;

@VariableMgr.VarAttr(name = ENABLE_NEREIDS_DML_WITH_PIPELINE, needForward = true,
description = {"在新优化器中,使用pipeline引擎执行DML", "execute DML with pipeline engine in Nereids"})
public boolean enableNereidsDmlWithPipeline = false;

@VariableMgr.VarAttr(name = ENABLE_STRICT_CONSISTENCY_DML, needForward = true)
public boolean enableStrictConsistencyDml = false;

Expand Down