diff --git a/plugin/trino-iceberg/src/test/java/io/trino/plugin/iceberg/BaseIcebergConnectorTest.java b/plugin/trino-iceberg/src/test/java/io/trino/plugin/iceberg/BaseIcebergConnectorTest.java index 31c5089b4f43..5f0cf4cebf9b 100644 --- a/plugin/trino-iceberg/src/test/java/io/trino/plugin/iceberg/BaseIcebergConnectorTest.java +++ b/plugin/trino-iceberg/src/test/java/io/trino/plugin/iceberg/BaseIcebergConnectorTest.java @@ -184,7 +184,6 @@ protected boolean hasBehavior(TestingConnectorBehavior connectorBehavior) return true; case SUPPORTS_CREATE_MATERIALIZED_VIEW: - case SUPPORTS_RENAME_MATERIALIZED_VIEW: return true; case SUPPORTS_RENAME_MATERIALIZED_VIEW_ACROSS_SCHEMAS: return false; diff --git a/testing/trino-testing/src/main/java/io/trino/testing/TestingConnectorBehavior.java b/testing/trino-testing/src/main/java/io/trino/testing/TestingConnectorBehavior.java index 51773b514654..6dff841495c9 100644 --- a/testing/trino-testing/src/main/java/io/trino/testing/TestingConnectorBehavior.java +++ b/testing/trino-testing/src/main/java/io/trino/testing/TestingConnectorBehavior.java @@ -75,7 +75,7 @@ public enum TestingConnectorBehavior SUPPORTS_CREATE_VIEW(false), SUPPORTS_CREATE_MATERIALIZED_VIEW(false), - SUPPORTS_RENAME_MATERIALIZED_VIEW(false), + SUPPORTS_RENAME_MATERIALIZED_VIEW(SUPPORTS_CREATE_MATERIALIZED_VIEW), SUPPORTS_RENAME_MATERIALIZED_VIEW_ACROSS_SCHEMAS(SUPPORTS_RENAME_MATERIALIZED_VIEW), SUPPORTS_INSERT,