You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@iotdb.apache.org by ji...@apache.org on 2024/10/08 06:30:34 UTC
(iotdb) 01/01: Register TableSchema for sql insertion
This is an automated email from the ASF dual-hosted git repository.
jiangtian pushed a commit to branch register_table_schema_for_sql_insertion
in repository https://gitbox.apache.org/repos/asf/iotdb.git
commit 530af7ce5870489de8bafbad90eba98685a388e6
Author: Tian Jiang <jt...@163.com>
AuthorDate: Tue Oct 8 14:30:45 2024 +0800
Register TableSchema for sql insertion
---
.../org/apache/iotdb/db/storageengine/dataregion/DataRegion.java | 5 ++++-
1 file changed, 4 insertions(+), 1 deletion(-)
diff --git a/iotdb-core/datanode/src/main/java/org/apache/iotdb/db/storageengine/dataregion/DataRegion.java b/iotdb-core/datanode/src/main/java/org/apache/iotdb/db/storageengine/dataregion/DataRegion.java
index c6b55484b8f..50a88ae7a0e 100644
--- a/iotdb-core/datanode/src/main/java/org/apache/iotdb/db/storageengine/dataregion/DataRegion.java
+++ b/iotdb-core/datanode/src/main/java/org/apache/iotdb/db/storageengine/dataregion/DataRegion.java
@@ -1401,6 +1401,8 @@ public class DataRegion implements IDataRegionForQuery {
PERFORMANCE_OVERVIEW_METRICS.recordScheduleMemoryBlockCost(costsForMetrics[1]);
PERFORMANCE_OVERVIEW_METRICS.recordScheduleWalCost(costsForMetrics[2]);
PERFORMANCE_OVERVIEW_METRICS.recordScheduleMemTableCost(costsForMetrics[3]);
+ // register TableSchema (and maybe more) for table insertion
+ registerToTsFile(insertRowNode, tsFileProcessor);
return tsFileProcessor;
}
@@ -1485,7 +1487,8 @@ public class DataRegion implements IDataRegionForQuery {
RpcUtils.getStatus(e.getErrorCode(), e.getMessage()));
}
executedInsertRowNodeList.addAll(subInsertRowsNode.getInsertRowNodeList());
-
+ // register TableSchema (and maybe more) for table insertion
+ registerToTsFile(subInsertRowsNode, tsFileProcessor);
// check memtable size and may asyncTryToFlush the work memtable
if (entry.getKey().shouldFlush()) {
fileFlushPolicy.apply(this, tsFileProcessor, tsFileProcessor.isSequence());