@Override
  public TsBlock constructResultForMemorySource(final MPPQueryContext context) {
    final StatementMemorySource memorySource =
        new StatementMemorySourceVisitor()
            .process(getTreeStatement(), new StatementMemorySourceContext(context, this));
    setRespDatasetHeader(memorySource.getDatasetHeader());
    return memorySource.getTsBlock();
  }
Get all time partition ids and combine adjacent time partition if they belong to same data
region
iotdb-core/datanode/src/main/java/org/apache/iotdb/db/queryengine/plan/analyze/Analysis.java