|
47 | 47 | import org.apache.paimon.table.sink.CommitMessage; |
48 | 48 | import org.apache.paimon.table.source.ReadBuilder; |
49 | 49 | import org.apache.paimon.table.source.TableScan; |
50 | | -import org.apache.paimon.table.system.AllTableOptionsTable; |
51 | | -import org.apache.paimon.table.system.CatalogOptionsTable; |
52 | 50 | import org.apache.paimon.types.DataField; |
53 | 51 | import org.apache.paimon.types.DataTypes; |
54 | 52 | import org.apache.paimon.types.RowType; |
|
85 | 83 | import static org.apache.paimon.catalog.Catalog.SYSTEM_DATABASE_NAME; |
86 | 84 | import static org.apache.paimon.table.system.AllTableOptionsTable.ALL_TABLE_OPTIONS; |
87 | 85 | import static org.apache.paimon.table.system.CatalogOptionsTable.CATALOG_OPTIONS; |
| 86 | +import static org.apache.paimon.table.system.SystemTableLoader.GLOBAL_SYSTEM_TABLES; |
88 | 87 | import static org.apache.paimon.testutils.assertj.PaimonAssertions.anyCauseMatches; |
89 | 88 | import static org.assertj.core.api.Assertions.assertThat; |
90 | 89 | import static org.assertj.core.api.Assertions.assertThatCode; |
@@ -1044,10 +1043,7 @@ public void testGetTable() throws Exception { |
1044 | 1043 | () -> catalog.getTable(Identifier.create(SYSTEM_DATABASE_NAME, "1111"))); |
1045 | 1044 |
|
1046 | 1045 | List<String> sysTables = catalog.listTables(SYSTEM_DATABASE_NAME); |
1047 | | - assertThat(sysTables) |
1048 | | - .containsExactlyInAnyOrder( |
1049 | | - AllTableOptionsTable.ALL_TABLE_OPTIONS, |
1050 | | - CatalogOptionsTable.CATALOG_OPTIONS); |
| 1046 | + assertThat(sysTables).containsAll(GLOBAL_SYSTEM_TABLES); |
1051 | 1047 |
|
1052 | 1048 | assertThat(catalog.listViews(SYSTEM_DATABASE_NAME)).isEmpty(); |
1053 | 1049 | } |
|
0 commit comments