lliangyu-lin opened a new issue, #425: URL: https://github.com/apache/iceberg-go/issues/425
### Apache Iceberg version None ### Please describe the bug 🐞 ### Description When running the list command with a specific namespace (e.g., `go run . list my_db --catalog glue`), the CLI attempts to list sub-namespaces using ListNamespaces(). This fails with: ``` hierarchical namespace is not supported ``` because current Glue catalog implementation does not support hierarchical (nested) namespaces and will simply throw an exception. The issue can happen in other catalog doesn't support hierarchical namespaces. Ideally the list command should first attempt to list the tables in the namespace and if it's empty, then tries to list the sub-namespaces. This also make sure it share the same behavior in iceberg-python. References: * https://github.com/apache/iceberg-go/blob/main/cmd/iceberg/main.go#L269-L273 * https://github.com/apache/iceberg-python/blame/main/pyiceberg/cli/console.py#L114-L121 -- 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.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