private static void compareSensorAndData(
      Map<String, List<TimeValuePair>> expectedData, Map<String, List<TimeValuePair>> targetData) {
    for (Entry<String, List<TimeValuePair>> sourceDataEntry : expectedData.entrySet()) {
      String fullPath = sourceDataEntry.getKey();
      List<TimeValuePair> sourceTimeValuePairs = sourceDataEntry.getValue();
      List<TimeValuePair> targetTimeValuePairs = targetData.get(fullPath);
      compareData(sourceTimeValuePairs, targetTimeValuePairs);
    }
  }
1. Use TsFileSequenceReader to read the merged file from back to front, and compare it with the
data before the merge to ensure complete consistency. 2. Use TsFileSequenceReader to read the
merged file from the front to the back, and compare it with the data before the merge to ensure
complete consistency (including pointsInPage statistics in pageHeader). 3. Check whether the
statistical information of TsFileResource corresponds to the original data point one-to-one,
including startTime, endTime (device level)

@param sourceData All time series before merging and their corresponding data points, fullPath
    -> pointList
@param mergedFiles The merged Files to be checked
iotdb-core/datanode/src/test/java/org/apache/iotdb/db/storageengine/dataregion/compaction/utils/CompactionCheckerUtils.java