private List<Long> convertToTimePartitionIds(List<TTimePartitionSlot> timePartitionSlotList) {
    List<Long> res = new ArrayList<>(timePartitionSlotList.size());
    for (TTimePartitionSlot timePartitionSlot : timePartitionSlotList) {
      res.add(TimePartitionUtils.getTimePartitionId(timePartitionSlot.startTime));
    }
    return res;
  }
aggregation align by device, and aggregation is `count_if` or `diff`, or aggregation used with
group by parameter (session, variation, count), use the old aggregation logic
iotdb-core/datanode/src/main/java/org/apache/iotdb/db/queryengine/plan/planner/distribution/SourceRewriter.java