@Test
  public void testTracedReplacePartitions() {
    Assume.assumeTrue(isPartitionedTable());
    UnkeyedTable operationTable = getOperationTable();
    operationTable
        .newFastAppend()
        .appendFile(DataFileTestHelpers.getFile(1, "op_time_day=2022-01-01"))
        .appendFile(DataFileTestHelpers.getFile(2, "op_time_day=2022-01-01"))
        .appendFile(DataFileTestHelpers.getFile(3, "op_time_day=2022-01-02"))
        .commit();

    operationTable
        .newReplacePartitions()
        .addFile(DataFileTestHelpers.getFile(4, "op_time_day=2022-01-02"))
        .commit();

    List<TableCommitMeta> tableCommitMetas =
        getAmsHandler().getTableCommitMetas().get(operationTable.id().buildTableIdentifier());
    Assert.assertEquals(2, tableCommitMetas.size());
    TableCommitMeta commitMeta = tableCommitMetas.get(1);
    validateCommitMeta(
        commitMeta,
        DataOperations.OVERWRITE,
        new org.apache.iceberg.DataFile[] {
          DataFileTestHelpers.getFile(4, "op_time_day=2022-01-02")
        },
        new org.apache.iceberg.DataFile[] {
          DataFileTestHelpers.getFile(3, "op_time_day=2022-01-02")
        });
  }
Table trace is disabled for version 0.5.0
amoro-format-iceberg/src/test/java/org/apache/amoro/trace/TestTableTracer.java