GitHub user raghavendr-a edited a discussion: Error when dropping table
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 <module> 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 <lambda> 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 Iam able to write and read the tables but when i try to drop table iam this errors GitHub link: https://github.com/apache/polaris/discussions/1807 ---- This is an automatically sent email for [email protected]. To unsubscribe, please send an email to: [email protected]
