nastra commented on issue #11539:
URL: https://github.com/apache/iceberg/issues/11539#issuecomment-2478640441

   Currently I cannot reproduce this issue with the below Trino test:
   
   ```
   --- 
a/plugin/trino-iceberg/src/test/java/io/trino/plugin/iceberg/catalog/rest/TestIcebergRestCatalogNestedNamespaceConnectorSmokeTest.java
   +++ 
b/plugin/trino-iceberg/src/test/java/io/trino/plugin/iceberg/catalog/rest/TestIcebergRestCatalogNestedNamespaceConnectorSmokeTest.java
   @@ -13,6 +13,7 @@
     */
    package io.trino.plugin.iceberg.catalog.rest;
   
   +import com.google.common.collect.ImmutableList;
    import com.google.common.collect.ImmutableMap;
    import io.airlift.http.server.testing.TestingHttpServer;
    import io.trino.filesystem.Location;
   @@ -22,6 +23,7 @@ import io.trino.plugin.iceberg.SchemaInitializer;
    import io.trino.plugin.iceberg.TestingIcebergPlugin;
    import io.trino.plugin.tpch.TpchPlugin;
    import io.trino.testing.DistributedQueryRunner;
   +import io.trino.testing.MaterializedRow;
    import io.trino.testing.QueryRunner;
    import io.trino.testing.TestingConnectorBehavior;
    import org.apache.iceberg.BaseTable;
   @@ -149,6 +151,18 @@ final class 
TestIcebergRestCatalogNestedNamespaceConnectorSmokeTest
            assertQueryFails("SELECT * FROM 
nested_namespace_disabled.\"level_1.level_2\".region", "Nested namespace is not 
enabled for this catalog");
        }
   
   +    @Test
   +    void testNestedNamespace()
   +    {
   +        assertUpdate("CREATE SCHEMA iceberg.first");
   +        assertUpdate("CREATE SCHEMA iceberg.\"first.second\"");
   +        assertUpdate("CREATE SCHEMA iceberg.\"first.second.third\"");
   +        assertThat(computeActual("show schemas from iceberg"))
   +                .contains(new MaterializedRow(ImmutableList.of("first")),
   +                        new 
MaterializedRow(ImmutableList.of("first.second")),
   +                        new 
MaterializedRow(ImmutableList.of("first.second.third")));
   +    }
   +
   ```


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: issues-unsubscr...@iceberg.apache.org

For queries about this service, please contact Infrastructure at:
us...@infra.apache.org


---------------------------------------------------------------------
To unsubscribe, e-mail: issues-unsubscr...@iceberg.apache.org
For additional commands, e-mail: issues-h...@iceberg.apache.org

Reply via email to