eickler opened a new issue, #1969:
URL: https://github.com/apache/iceberg-rust/issues/1969
### Apache Iceberg Rust version
None
### Describe the bug
Other implementations of `list_namespace(parent)` return absolute namespace
identifiers. For example, if there is a namespace `b` under `a`,
`list_namespace("a")` should return `NamespaceIdent::from_strs(vec!["a",
"b"])`. This is documented in the [REST OpenAPI
spec](https://github.com/apache/iceberg/blob/4632f3133efbf6b8232ed9526de7142fd50e1aa6/open-api/rest-catalog-open-api.yaml#L251),
the [Java
implementation](https://iceberg.apache.org/javadoc/1.10.1/org/apache/iceberg/catalog/SupportsNamespaces.html#loadNamespaceMetadata(org.apache.iceberg.catalog.Namespace))
and, in this repo, in
[SqlCatalog](https://github.com/apache/iceberg-rust/blob/99ca196a7a81343ac35d993d9db2ec59c626f389/crates/catalog/sql/src/catalog.rs#L1396).
MemoryCatalog returns relative identifiers, as can be seen
[here](https://github.com/apache/iceberg-rust/blob/99ca196a7a81343ac35d993d9db2ec59c626f389/crates/iceberg/src/catalog/memory/catalog.rs#L597).
To make MemoryCatalog mimick real implementations better, the behaviour should
be fixed.
### To Reproduce
Current behaviour is demonstrated in a [MemoryCatalog unit
test](https://github.com/apache/iceberg-rust/blob/99ca196a7a81343ac35d993d9db2ec59c626f389/crates/iceberg/src/catalog/memory/catalog.rs#L597).
### Expected behavior
Desired behaviour is demonstrated in the matching [SqlCatalog unit
test](https://github.com/apache/iceberg-rust/blob/99ca196a7a81343ac35d993d9db2ec59c626f389/crates/catalog/sql/src/catalog.rs#L1396).
### Willingness to contribute
I can contribute a fix for this bug independently
--
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: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]