Skip to content

Commit

Permalink
Fix query result is empty in order by time align by device
Browse files Browse the repository at this point in the history
  • Loading branch information
Beyyes authored Jan 19, 2024
1 parent 7dd570d commit 4cc5b2b
Showing 1 changed file with 7 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -133,7 +133,12 @@ public List<PlanNode> visitSingleDeviceView(

String device = node.getDevice();
List<TRegionReplicaSet> regionReplicaSets =
analysis.getPartitionInfo(device, context.getPartitionTimeFilter());
!analysis.useLogicalView()
? new ArrayList<>(analysis.getPartitionInfo(device, context.getPartitionTimeFilter()))
: new ArrayList<>(
analysis.getPartitionInfo(
analysis.getOutputDeviceToQueriedDevicesMap().get(device),
context.getPartitionTimeFilter()));

List<PlanNode> singleDeviceViewList = new ArrayList<>();
for (TRegionReplicaSet tRegionReplicaSet : regionReplicaSets) {
Expand Down Expand Up @@ -183,7 +188,7 @@ public List<PlanNode> visitDeviceView(DeviceViewNode node, DistributionPlanConte
String outputDevice = node.getDevices().get(i);
PlanNode child = node.getChildren().get(i);
List<TRegionReplicaSet> regionReplicaSets =
analysis.isAllDevicesInOneTemplate()
!analysis.useLogicalView()
? new ArrayList<>(
analysis.getPartitionInfo(outputDevice, context.getPartitionTimeFilter()))
: new ArrayList<>(
Expand Down

0 comments on commit 4cc5b2b

Please sign in to comment.