dataders opened a new issue, #1163:
URL: https://github.com/apache/iceberg-python/issues/1163

   ### Apache Iceberg version
   
   0.7.1 (latest release)
   
   ### Please describe the bug 🐞
   
   the docstring for `catalog.list_tables()` says
   > If namespace not provided, will list all tables in the catalog.
   
   But I'm finding that to not be the case! The function definition itself 
seems to not allow this
   
   
https://github.com/apache/iceberg-python/blob/77406b0ba75d846fb5bb903197dd05cc708f8807/pyiceberg/catalog/__init__.py#L563-L577
   
   ### error
   ```py
   TypeError: RestCatalog.list_tables() missing 1 required positional argument: 
'namespace'
   ```
   
   ```py
   File 
~/repos/sandbox-spark-iceberg/.conda/lib/python3.11/site-packages/tenacity/__init__.py:478,
 in Retrying.__call__(self, fn, *args, **kwargs)
       
[476](https://file+.vscode-resource.vscode-cdn.net/Users/dataders/repos/sandbox-spark-iceberg/~/repos/sandbox-spark-iceberg/.conda/lib/python3.11/site-packages/tenacity/__init__.py:476)
 if isinstance(do, DoAttempt):
       
[477](https://file+.vscode-resource.vscode-cdn.net/Users/dataders/repos/sandbox-spark-iceberg/~/repos/sandbox-spark-iceberg/.conda/lib/python3.11/site-packages/tenacity/__init__.py:477)
     try:
   --> 
[478](https://file+.vscode-resource.vscode-cdn.net/Users/dataders/repos/sandbox-spark-iceberg/~/repos/sandbox-spark-iceberg/.conda/lib/python3.11/site-packages/tenacity/__init__.py:478)
         result = fn(*args, **kwargs)
       
[479](https://file+.vscode-resource.vscode-cdn.net/Users/dataders/repos/sandbox-spark-iceberg/~/repos/sandbox-spark-iceberg/.conda/lib/python3.11/site-packages/tenacity/__init__.py:479)
     except BaseException:  # noqa: B902
       
[480](https://file+.vscode-resource.vscode-cdn.net/Users/dataders/repos/sandbox-spark-iceberg/~/repos/sandbox-spark-iceberg/.conda/lib/python3.11/site-packages/tenacity/__init__.py:480)
         retry_state.set_exception(sys.exc_info())  # type: ignore[arg-type]
   
   TypeError: RestCatalog.list_tables() missing 1 required positional argument: 
'namespace'
   ```


-- 
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: issues-unsubscr...@iceberg.apache.org.apache.org

For queries about this service, please contact Infrastructure at:
us...@infra.apache.org


---------------------------------------------------------------------
To unsubscribe, e-mail: issues-unsubscr...@iceberg.apache.org
For additional commands, e-mail: issues-h...@iceberg.apache.org

Reply via email to