QuakeWang opened a new pull request, #8039:
URL: https://github.com/apache/paimon/pull/8039
### Purpose
Daft Catalog accepts single-part identifiers, and PaimonCatalog previously
forwarded them to pypaimon as plain table names. For table APIs, this is
invalid because pypaimon's Identifier parser
requires `db.table`, so `get_table("missing_table")` and
`drop_table("missing_table")` leaked `ValueError` instead of Daft
`NotFoundError`.
This PR adds table-specific identifier handling in `PaimonCatalog`:
single-part table identifiers are handled at the Daft catalog layer as not
found, and `has_table("missing_table")` now returns `False`.
### Tests
- `pytest paimon-python/pypaimon/tests/daft/daft_catalog_test.py`
- `pytest paimon-python/pypaimon/tests/daft/daft_catalog_rest_test.py`
--
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]