Skip to content

Commit ca3482f

Browse files
committed
test
1 parent 2cd874f commit ca3482f

File tree

2 files changed

+16
-2
lines changed

2 files changed

+16
-2
lines changed

be/src/runtime/runtime_state.cpp

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -229,11 +229,9 @@ Status RuntimeState::init(const TUniqueId& fragment_instance_id, const TQueryOpt
229229
_query_options.max_errors = 100;
230230
}
231231

232-
LOG(INFO) << "batch size: " << _query_options.batch_size << ", query id: " << print_id(_query_id);
233232
if (_query_options.batch_size <= 0) {
234233
_query_options.batch_size = DEFAULT_BATCH_SIZE;
235234
}
236-
LOG(INFO) << "batch size: " << _query_options.batch_size << ", query id: " << print_id(_query_id);
237235

238236
_db_name = "insert_stmt";
239237
_import_label = print_id(fragment_instance_id);

fe/fe-core/src/main/java/org/apache/doris/load/loadv2/BrokerLoadJob.java

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -307,6 +307,22 @@ private void createLoadingTask(Database db, BrokerPendingTaskAttachment attachme
307307
}
308308
boolean isEnableMemtableOnSinkNode =
309309
table.getTableProperty().getUseSchemaLightChange() && this.enableMemTableOnSinkNode;
310+
boolean hasInvertedIndexV1 = false;
311+
if (table.getIndexes() != null) {
312+
for (org.apache.doris.catalog.Index index : table.getIndexes()) {
313+
if (index.getIndexType() == org.apache.doris.catalog.IndexDefinition.IndexType.INVERTED) {
314+
if (table.getInvertedIndexFileStorageFormat()
315+
== org.apache.doris.thrift.TInvertedIndexFileStorageFormat.V1) {
316+
hasInvertedIndexV1 = true;
317+
break;
318+
}
319+
}
320+
}
321+
}
322+
if (isPartialUpdate() || hasInvertedIndexV1 || Config.isCloudMode()) {
323+
isEnableMemtableOnSinkNode = false;
324+
}
325+
310326
// Generate loading task and init the plan of task
311327
LoadLoadingTask task = createTask(db, table, brokerFileGroups,
312328
isEnableMemtableOnSinkNode, batchSize, aggKey, attachment);

0 commit comments

Comments
 (0)