Error when dropping table #1807
Unanswered
raghavendr-a
asked this question in
Q&A
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
raceback (most recent call last):
File "/usr/local/lib/python3.11/site-packages/pyiceberg/catalog/rest.py", line 696, in drop_table
response.raise_for_status()
File "/usr/local/lib/python3.11/site-packages/requests/models.py", line 1024, in raise_for_status
raise HTTPError(http_error_msg, response=self)
requests.exceptions.HTTPError: 400 Client Error: Bad Request for url: http://polaris-catalog.default:8181/api/catalog/v1/t/namespaces/1/tables/dataset_92de0ead5952432db87b0bd56cce6a03?purgeRequested=False
The above exception was the direct cause of the following exception:
Traceback (most recent call last):
File "/xvector/xserver/test.py", line 66, in
pyiceberg_catalog.drop_table("1.datasets.dataset_92de0ead5952432db87b0bd56cce6a03")
File "/usr/local/lib/python3.11/site-packages/tenacity/init.py", line 338, in wrapped_f
return copy(f, *args, **kw)
^^^^^^^^^^^^^^^^^^^^
File "/usr/local/lib/python3.11/site-packages/tenacity/init.py", line 477, in call
do = self.iter(retry_state=retry_state)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/usr/local/lib/python3.11/site-packages/tenacity/init.py", line 378, in iter
result = action(retry_state)
^^^^^^^^^^^^^^^^^^^
File "/usr/local/lib/python3.11/site-packages/tenacity/init.py", line 400, in
self._add_action_func(lambda rs: rs.outcome.result())
^^^^^^^^^^^^^^^^^^^
File "/usr/local/lib/python3.11/concurrent/futures/_base.py", line 449, in result
return self.__get_result()
^^^^^^^^^^^^^^^^^^^
File "/usr/local/lib/python3.11/concurrent/futures/_base.py", line 401, in __get_result
raise self._exception
File "/usr/local/lib/python3.11/site-packages/tenacity/init.py", line 480, in call
result = fn(*args, **kwargs)
^^^^^^^^^^^^^^^^^^^
File "/usr/local/lib/python3.11/site-packages/pyiceberg/catalog/rest.py", line 698, in drop_table
self._handle_non_200_response(exc, {404: NoSuchTableError})
File "/usr/local/lib/python3.11/site-packages/pyiceberg/catalog/rest.py", line 465, in _handle_non_200_response
raise exception(response) from exc
pyiceberg.exceptions.BadRequestError: IllegalArgumentException: An exception occurred while creating a query in EntityManager:
Exception Description: Problem compiling [SELECT m from ModelPolicyMappingRecord m where m.targetCatalogId=:targetCatalogId and m.targetId=:targetId].
[14, 38] The abstract schema type 'ModelPolicyMappingRecord' is unknown.
[47, 64] The state field path 'm.targetCatalogId' cannot be resolved to a valid type.
[88, 98] The state field path 'm.targetId' cannot be resolved to a valid type.
Iam getting this above error when m I'm dropping a table using pyiceberg
I was able to write and read the tables but when i try to drop table I get these errors
Beta Was this translation helpful? Give feedback.
All reactions