private void validateDataFile(
      List<DataFile> dataFiles, org.apache.iceberg.DataFile... icebergFiles) {
    Assert.assertEquals(icebergFiles.length, dataFiles.size());
    Map<String, org.apache.iceberg.DataFile> icebergFilesMap = Maps.newHashMap();
    Arrays.stream(icebergFiles).forEach(f -> icebergFilesMap.put(f.path().toString(), f));
    for (DataFile validateFile : dataFiles) {
      org.apache.iceberg.DataFile icebergFile = icebergFilesMap.get(validateFile.getPath());
      Assert.assertEquals(icebergFile.path(), validateFile.getPath());
      Assert.assertEquals(icebergFile.fileSizeInBytes(), validateFile.getFileSize());
      Assert.assertEquals(icebergFile.recordCount(), validateFile.getRecordCount());
      Assert.assertEquals(
          onBaseTable ? DataFileType.BASE_FILE.name() : DataFileType.INSERT_FILE.name(),
          validateFile.getFileType());
      Assert.assertEquals(0, validateFile.getIndex());
      Assert.assertEquals(0, validateFile.getMask());
      if (isPartitionedTable()) {
        Assert.assertEquals(getMixedTable().spec().specId(), validateFile.getSpecId());
        Assert.assertEquals(1, validateFile.getPartitionSize());
        Assert.assertEquals(
            getMixedTable().spec().fields().get(0).name(),
            validateFile.getPartition().get(0).getName());
        Assert.assertEquals(
            getMixedTable().spec().partitionToPath(icebergFile.partition()),
            getMixedTable().spec().fields().get(0).name()
                + "="
                + validateFile.getPartition().get(0).getValue());
      }
    }
  }
Table trace is disabled for version 0.5.0
amoro-format-iceberg/src/test/java/org/apache/amoro/trace/TestTableTracer.java