Latest Results
feat(session): resolve catalog-qualified identifiers in namespace methods (#7171)
## Changes Made
### Problem
`create_namespace`, `drop_namespace`, and `has_namespace` bypassed
`_resolve_catalog`, so catalog-qualified identifiers like
`"my_cat.my_ns"` were not routed to the target catalog.
`create_table`/`drop_table` already resolved correctly.
### What changed
**`daft/session.py`**
- Added `_resolve_catalog` to `create_namespace`,
`create_namespace_if_not_exists`, `drop_namespace`, `has_namespace`
- Added `str` → `Identifier` conversion to `create_namespace`,
`drop_namespace`, `has_namespace` (was missing)
- Fixed `drop_table` to prepend `current_namespace` for unqualified
single-part identifiers (replaced a TODO)
**`tests/catalog/test_catalog.py`**
- Added 10 tests covering catalog-qualified CRUD, unqualified fallback,
multi-catalog isolation, error paths, and `Identifier`-object input
- Implemented `_drop_namespace`, `_has_namespace`, `_list_namespaces` in
`MockCatalog` to support tests Latest Branches
0%
everettVT/droid-hdf5-stack 0%
0%
© 2026 CodSpeed Technology