From f7a2e150a1881593c5e668fc6b98353991576ec6 Mon Sep 17 00:00:00 2001 From: yantian Date: Mon, 16 Dec 2024 16:51:28 +0800 Subject: [PATCH] fix ut fail --- .../apache/paimon/catalog/FileSystemCatalogTest.java | 11 ++++++++--- 1 file changed, 8 insertions(+), 3 deletions(-) diff --git a/paimon-core/src/test/java/org/apache/paimon/catalog/FileSystemCatalogTest.java b/paimon-core/src/test/java/org/apache/paimon/catalog/FileSystemCatalogTest.java index aa2ddaf4f7a7..aef2f8f485ce 100644 --- a/paimon-core/src/test/java/org/apache/paimon/catalog/FileSystemCatalogTest.java +++ b/paimon-core/src/test/java/org/apache/paimon/catalog/FileSystemCatalogTest.java @@ -24,11 +24,11 @@ import org.apache.paimon.schema.Schema; import org.apache.paimon.types.DataTypes; +import org.apache.paimon.shade.guava30.com.google.common.collect.Lists; + import org.junit.jupiter.api.BeforeEach; import org.junit.jupiter.api.Test; -import java.util.ArrayList; - import static org.assertj.core.api.Assertions.assertThatExceptionOfType; import static org.assertj.core.api.Assertions.assertThatThrownBy; @@ -75,7 +75,12 @@ public void testCreateTableAllowUpperCase() throws Exception { public void testAlterDatabase() throws Exception { String databaseName = "test_alter_db"; catalog.createDatabase(databaseName, false); - assertThatThrownBy(() -> catalog.alterDatabase(databaseName, new ArrayList<>(), false)) + assertThatThrownBy( + () -> + catalog.alterDatabase( + databaseName, + Lists.newArrayList(PropertyChange.removeProperty("a")), + false)) .isInstanceOf(UnsupportedOperationException.class); } }