@Test
  public void testTraceAppendNoneFiles() {
    UnkeyedTable operationTable = getOperationTable();
    operationTable.newAppend().commit();
    List<TableCommitMeta> appendTableCommitMetas =
        getAmsHandler().getTableCommitMetas().get(operationTable.id().buildTableIdentifier());
    Assert.assertEquals(1, appendTableCommitMetas.size());
    Assert.assertNotNull(appendTableCommitMetas.get(0).getChanges());

    Transaction overwriteTransaction = operationTable.newTransaction();
    overwriteTransaction.newOverwrite().commit();
    overwriteTransaction.commitTransaction();
    List<TableCommitMeta> overwriteTableCommitMetas =
        getAmsHandler().getTableCommitMetas().get(operationTable.id().buildTableIdentifier());
    Assert.assertEquals(2, overwriteTableCommitMetas.size());
    Assert.assertEquals(1, overwriteTableCommitMetas.get(1).getChanges().size());

    Transaction rewriteTransaction = operationTable.newTransaction();
    rewriteTransaction.newRewrite().commit();
    rewriteTransaction.commitTransaction();
    List<TableCommitMeta> rewriteTableCommitMetas =
        getAmsHandler().getTableCommitMetas().get(operationTable.id().buildTableIdentifier());
    Assert.assertEquals(3, rewriteTableCommitMetas.size());
    Assert.assertEquals(1, rewriteTableCommitMetas.get(2).getChanges().size());

    getMixedTable().updateSchema().commit();
    List<TableCommitMeta> updateSchemaCommitMetas =
        getAmsHandler().getTableCommitMetas().get(operationTable.id().buildTableIdentifier());
    Assert.assertEquals(3, updateSchemaCommitMetas.size());

    getMixedTable().updateProperties().commit();
    List<TableCommitMeta> updatePropertiesCommitMetas =
        getAmsHandler().getTableCommitMetas().get(operationTable.id().buildTableIdentifier());
    Assert.assertEquals(4, updatePropertiesCommitMetas.size());
    Assert.assertNull(rewriteTableCommitMetas.get(3).getChanges());
  }
Table trace is disabled for version 0.5.0
amoro-format-iceberg/src/test/java/org/apache/amoro/trace/TestTableTracer.java