public static Stream<Arguments> testDuplicateSourceCheck() {
    return Stream.of(
        Arguments.arguments(MIXED_HIVE, ID_PRIMARY_KEY_SPEC, true, true),
        Arguments.arguments(MIXED_HIVE, NO_PRIMARY_KEY, true, false),
        Arguments.arguments(MIXED_HIVE, ID_PRIMARY_KEY_SPEC, false, false),
        Arguments.arguments(MIXED_ICEBERG, ID_PRIMARY_KEY_SPEC, true, true),
        Arguments.arguments(MIXED_ICEBERG, NO_PRIMARY_KEY, true, false),
        Arguments.arguments(MIXED_ICEBERG, ID_PRIMARY_KEY_SPEC, false, false));
  }
test 1. upsert not enabled test 2. upsert enabled test 3. upsert source duplicate check test 4.
upsert optimize write
amoro-format-mixed/amoro-mixed-spark/v3.5/amoro-mixed-spark-3.5/src/test/java/org/apache/amoro/spark/test/suites/sql/TestInsertIntoSQL.java