luoluoyuyu commented on code in PR #16062:
URL: https://github.com/apache/iotdb/pull/16062#discussion_r2244880983
##########
iotdb-core/datanode/src/main/java/org/apache/iotdb/db/queryengine/plan/planner/plan/node/write/InsertTabletNode.java:
##########
@@ -187,6 +190,22 @@ public void setRange(List<Integer> range) {
this.range = range;
}
+ public Tablet convertToTablet() {
+ final Tablet tablet =
+ new Tablet(
+ getTableName(),
+ Arrays.asList(measurements),
+ Arrays.asList(dataTypes),
+ Arrays.stream(columnCategories)
+ .map(TsTableColumnCategory::toTsFileColumnType)
+ .collect(Collectors.toList()),
+ rowCount);
+ tablet.setBitMaps(bitMaps);
+ tablet.setTimestamps(times);
+ tablet.setValues(columns);
Review Comment:
Please note that type conversion is required here, you can reuse the Pipe
InsertNode Parser method
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]