private long advisoryPartitionSize(long defaultValue) {
    return confParser
        .longConf()
        .option(SparkWriteOptions.ADVISORY_PARTITION_SIZE)
        .sessionConf(SparkSQLProperties.ADVISORY_PARTITION_SIZE)
        .tableProperty(TableProperties.SPARK_WRITE_ADVISORY_PARTITION_SIZE_BYTES)
        .defaultValue(defaultValue)
        .parse();
  }
@TestTemplate
  public void testAdvisoryPartitionSize() {
    Table table = validationCatalog.loadTable(tableIdent);

    SparkWriteConf writeConf = new SparkWriteConf(spark, table, ImmutableMap.of());

    long value1 = writeConf.writeRequirements().advisoryPartitionSize();
    assertThat(value1).isGreaterThan(64L * 1024 * 1024).isLessThan(2L * 1024 * 1024 * 1024);

    spark.conf().set(SQLConf.ADVISORY_PARTITION_SIZE_IN_BYTES().key(), "2GB");
    long value2 = writeConf.writeRequirements().advisoryPartitionSize();
    assertThat(value2).isEqualTo(2L * 1024 * 1024 * 1024);

    spark.conf().set(SQLConf.ADVISORY_PARTITION_SIZE_IN_BYTES().key(), "10MB");
    long value3 = writeConf.writeRequirements().advisoryPartitionSize();
    assertThat(value3).isGreaterThan(10L * 1024 * 1024);
  }