diff --git a/paimon-spark/paimon-spark-ut/src/test/scala/org/apache/paimon/spark/sql/AnalyzeTableTestBase.scala b/paimon-spark/paimon-spark-ut/src/test/scala/org/apache/paimon/spark/sql/AnalyzeTableTestBase.scala index 4f8ccae22dd5..8170c5836442 100644 --- a/paimon-spark/paimon-spark-ut/src/test/scala/org/apache/paimon/spark/sql/AnalyzeTableTestBase.scala +++ b/paimon-spark/paimon-spark-ut/src/test/scala/org/apache/paimon/spark/sql/AnalyzeTableTestBase.scala @@ -379,7 +379,7 @@ abstract class AnalyzeTableTestBase extends PaimonSparkTestBase { Assertions.assertEquals(2, statsFileCount(tableLocation, fileIO)) // test expire statistic - spark.sql("CALL sys.expire_snapshots(table => 'test.T', retain_max => 1)") + spark.sql("CALL sys.expire_snapshots(table => 'test.T', retain_max => 1, retain_min => 1)") Assertions.assertEquals(1, statsFileCount(tableLocation, fileIO)) val orphanStats = new Path(tableLocation, "statistics/stats-orphan-0")