|
24 | 24 | import java.util.Map;
|
25 | 25 | import org.apache.flink.table.api.ResultKind;
|
26 | 26 | import org.apache.flink.types.Row;
|
27 |
| -import org.apache.gravitino.Schema; |
28 | 27 | import org.apache.gravitino.flink.connector.iceberg.IcebergPropertiesConstants;
|
29 | 28 | import org.apache.gravitino.flink.connector.integration.test.utils.TestUtils;
|
30 | 29 | import org.junit.jupiter.api.Assertions;
|
31 | 30 | import org.junit.jupiter.api.Tag;
|
32 |
| -import org.junit.jupiter.api.Test; |
33 |
| -import org.junit.jupiter.api.condition.EnabledIf; |
34 | 31 |
|
35 | 32 | @Tag("gravitino-docker-test")
|
36 | 33 | public class FlinkIcebergRestCatalogIT extends FlinkIcebergCatalogIT {
|
@@ -89,45 +86,6 @@ public void testListSchema() {
|
89 | 86 | });
|
90 | 87 | }
|
91 | 88 |
|
92 |
| - @Test |
93 |
| - @EnabledIf("supportSchemaOperationWithCommentAndOptions") |
94 |
| - public void testAlterSchemaWithCommentAndOptions() { |
95 |
| - doWithCatalog( |
96 |
| - currentCatalog(), |
97 |
| - catalog -> { |
98 |
| - String schema = "test_alter_schema"; |
99 |
| - try { |
100 |
| - TestUtils.assertTableResult( |
101 |
| - sql( |
102 |
| - "CREATE DATABASE IF NOT EXISTS %s " |
103 |
| - + "COMMENT 'test comment'" |
104 |
| - + "WITH ('key1' = 'value1', 'key2'='value2')", |
105 |
| - schema), |
106 |
| - ResultKind.SUCCESS); |
107 |
| - |
108 |
| - Schema loadedSchema = catalog.asSchemas().loadSchema(schema); |
109 |
| - Assertions.assertEquals(schema, loadedSchema.name()); |
110 |
| - Assertions.assertEquals("test comment", loadedSchema.comment()); |
111 |
| - Assertions.assertEquals("value1", loadedSchema.properties().get("key1")); |
112 |
| - Assertions.assertEquals("value2", loadedSchema.properties().get("key2")); |
113 |
| - |
114 |
| - // TODO: The check cannot pass in CI, but it can be successful locally. |
115 |
| - // Assertions.assertNotNull(loadedSchema.properties().get("location")); |
116 |
| - |
117 |
| - TestUtils.assertTableResult( |
118 |
| - sql("ALTER DATABASE %s SET ('key1'='new-value', 'key3'='value3')", schema), |
119 |
| - ResultKind.SUCCESS); |
120 |
| - Schema reloadedSchema = catalog.asSchemas().loadSchema(schema); |
121 |
| - Assertions.assertEquals(schema, reloadedSchema.name()); |
122 |
| - Assertions.assertEquals("test comment", reloadedSchema.comment()); |
123 |
| - Assertions.assertEquals("new-value", reloadedSchema.properties().get("key1")); |
124 |
| - Assertions.assertEquals("value3", reloadedSchema.properties().get("key3")); |
125 |
| - } finally { |
126 |
| - catalog.asSchemas().dropSchema(schema, supportDropCascade()); |
127 |
| - } |
128 |
| - }); |
129 |
| - } |
130 |
| - |
131 | 89 | @Override
|
132 | 90 | protected String getCatalogBackend() {
|
133 | 91 | return "rest";
|
|
0 commit comments