geruh opened a new pull request, #300:
URL: https://github.com/apache/iceberg-python/pull/300
While reviewing the GlueCatalog implementation in Python, I noticed the
listing methods for tables and namespaces are making redundant calls to AWS
Glue. This PR removes the extra call and ensures that all data retrieval and
pagination handling remains consistent.
## Manual Testing
Before:
```
print(glue_catalog.list_namespaces())
> [('default',), ('spark',)]
print(glue_catalog.list_tables("default"))
> [('default', 'amazon'), ('default', 'cmd'), ('default', 'history'),
('default', 'snapshots'), ('default', 'table3'), ('default', 'table3_copy'),
('default', 'table4')]
```
After:
```
print(glue_catalog.list_namespaces())
> [('default',), ('spark',)]
print(glue_catalog.list_tables("default"))
> [('default', 'amazon'), ('default', 'cmd'), ('default', 'history'),
('default', 'snapshots'), ('default', 'table3'), ('default', 'table3_copy'),
('default', 'table4')]
```
--
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]
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]