From 3c6678bb3f0c851f552e982621cf239a7249be9c Mon Sep 17 00:00:00 2001 From: Yuya Ebihara Date: Thu, 13 Oct 2022 09:22:04 +0900 Subject: [PATCH] Add ALTER TABLE statement to Iceberg trailing slash test --- .../plugin/iceberg/BaseIcebergMinioConnectorSmokeTest.java | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/plugin/trino-iceberg/src/test/java/io/trino/plugin/iceberg/BaseIcebergMinioConnectorSmokeTest.java b/plugin/trino-iceberg/src/test/java/io/trino/plugin/iceberg/BaseIcebergMinioConnectorSmokeTest.java index c1962d622a58..bba5cefa3bdb 100644 --- a/plugin/trino-iceberg/src/test/java/io/trino/plugin/iceberg/BaseIcebergMinioConnectorSmokeTest.java +++ b/plugin/trino-iceberg/src/test/java/io/trino/plugin/iceberg/BaseIcebergMinioConnectorSmokeTest.java @@ -106,6 +106,10 @@ public void testS3LocationWithTrailingSlash() List metadataFiles = hiveMinioDataLake.getMinioClient().listObjects(bucketName, "/%s/%s/metadata".formatted(schemaName, tableName)); assertThat(metadataFiles).isNotEmpty().filteredOn(filePath -> filePath.contains("#")).isEmpty(); + // Verify ALTER TABLE succeeds https://github.com/trinodb/trino/issues/14552 + assertUpdate("ALTER TABLE " + tableName + " ADD COLUMN new_col int"); + assertTableColumnNames(tableName, "col", "new_col"); + assertUpdate("DROP TABLE " + tableName); }