private void assertFileLayout(TableFormat format) {
    TableFiles files = TestTableUtil.files(table);
    Set<String> initFileSet =
        initFiles.stream().map(f -> f.path().toString()).collect(Collectors.toSet());
    files = files.removeFiles(initFileSet);

    Asserts.assertAllFilesInBaseStore(files);
    if (MIXED_HIVE == format) {
      String hiveLocation = ((SupportHive) table).hiveLocation();
      Asserts.assertAllFilesInHiveLocation(files, hiveLocation);
    }
  }
1. dynamic insert overwrite 2. static insert overwrite 3. for un-partitioned table 3. duplicate
check for insert overwrite 4. optimize write is work for insert overwrite
amoro-format-mixed/amoro-mixed-spark/v3.5/amoro-mixed-spark-3.5/src/test/java/org/apache/amoro/spark/test/suites/sql/TestInsertOverwriteSQL.java