JackieTien97 commented on code in PR #14465:
URL: https://github.com/apache/iotdb/pull/14465#discussion_r1891543324
##########
iotdb-core/datanode/src/main/java/org/apache/iotdb/db/queryengine/plan/relational/planner/distribute/TableDistributedPlanGenerator.java:
##########
@@ -524,6 +527,120 @@ public List<PlanNode>
visitDeviceTableScan(DeviceTableScanNode node, PlanContext
return resultTableScanNodeList;
}
+ @Override
+ public List<PlanNode> visitTreeDeviceViewScan(TreeDeviceViewScanNode node,
PlanContext context) {
+ // left of pair if TreeAlignedDeviceViewScanNode, right is
TreeNonAlignedDeviceViewScanNode
+ Map<TRegionReplicaSet, Pair<TreeDeviceViewScanNode,
TreeDeviceViewScanNode>> tableScanNodeMap =
+ new HashMap<>();
+
+ for (DeviceEntry deviceEntry : node.getDeviceEntries()) {
+ List<TRegionReplicaSet> regionReplicaSets =
+ analysis.getDataRegionReplicaSetWithTimeFilter(
+ node.getQualifiedObjectName().getDatabaseName(),
+ deviceEntry.getDeviceID(),
+ node.getTimeFilter());
Review Comment:
or you should pass the orginal tree dbName instead of tree_view
--
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]