diff --git a/docs/en/docs/advanced/variables.md b/docs/en/docs/advanced/variables.md index 45ed6d7d967b76..11a2b3a0edaef7 100644 --- a/docs/en/docs/advanced/variables.md +++ b/docs/en/docs/advanced/variables.md @@ -693,7 +693,7 @@ Note that the comment must start with /*+ and can only follow the SELECT. * `enable_memtable_on_sink_node` - Whether to enable MemTable on DataSink node when loading data, default is false. + Whether to enable MemTable on DataSink node when loading data, default is true. Build MemTable on DataSink node, and send segments to other backends through brpc streaming. diff --git a/docs/zh-CN/docs/advanced/variables.md b/docs/zh-CN/docs/advanced/variables.md index 88a4aec8a5f9ea..f9b122a069b7fd 100644 --- a/docs/zh-CN/docs/advanced/variables.md +++ b/docs/zh-CN/docs/advanced/variables.md @@ -681,7 +681,7 @@ try (Connection conn = DriverManager.getConnection("jdbc:mysql://127.0.0.1:9030/ * `enable_memtable_on_sink_node` - 是否在数据导入中启用 MemTable 前移,默认为 false + 是否在数据导入中启用 MemTable 前移,默认为 true 在 DataSink 节点上构建 MemTable,并通过 brpc streaming 发送 segment 到其他 BE。 diff --git a/fe/fe-core/src/main/java/org/apache/doris/qe/SessionVariable.java b/fe/fe-core/src/main/java/org/apache/doris/qe/SessionVariable.java index 2bf86de67aa8de..61cadfae735e3c 100644 --- a/fe/fe-core/src/main/java/org/apache/doris/qe/SessionVariable.java +++ b/fe/fe-core/src/main/java/org/apache/doris/qe/SessionVariable.java @@ -1393,7 +1393,7 @@ public void setEnableLeftZigZag(boolean enableLeftZigZag) { public boolean truncateCharOrVarcharColumns = false; @VariableMgr.VarAttr(name = ENABLE_MEMTABLE_ON_SINK_NODE, needForward = true) - public boolean enableMemtableOnSinkNode = false; + public boolean enableMemtableOnSinkNode = true; @VariableMgr.VarAttr(name = LOAD_STREAM_PER_NODE) public int loadStreamPerNode = 20;