Closed
Description
Apache Iceberg version
None
Please describe the bug 🐞
While working on a Python REST server implementation (https://github.com/kevinjqliu/iceberg-rest-catalog), I noticed a few Pyiceberg bugs while integrating with PySpark. The REST server implementation is using SqlCatalog as the underlying catalog.
Here's the collection of bugs that I would like to upstream (main...kevinjqliu:iceberg-python:kevinjqliu/iceberg-rest-catalog)
To summarize:
-
rest.py
'sdrop_namespace
function is missing handling the409
status code. (Handle error when trying to drop a non-empty namespace on rest.py #868) -
sql.py
'sdrop_namespace
function does not returnNoSuchNamespaceError
when namespace is missing. (Raise error on nonexistent namespace on sql.py #865) -
sql.py
'supdate_namespace_properties
function only updates the first property and drops the rest. (fix: update all namespace properties in update_namespace_properties #873) -
TableMetadata
is initialized with the default Pydantic object forschema
,partition_spec
, andsort_order
, which does not play well with table updates.
I'll be happy to work on this but I think these are "good first issues". We can break these up into separate PRs with the relevant tests.
Metadata
Metadata
Assignees
Labels
No labels