-
Notifications
You must be signed in to change notification settings - Fork 168
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Bug Fix: Glue and Hive catalog return only Iceberg tables #1145
Conversation
cbe2ff6
to
cfb1d45
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Hi @mark-major thank you for putting together this PR. The tests for the hive and glue catalogs seem to prove that your implementation is working 💯
I've left a question about the dynamodb implementation, and a nit suggestion, please let me know your thoughts!
@@ -393,7 +393,7 @@ def drop_namespace(self, namespace: Union[str, Identifier]) -> None: | |||
raise NoSuchNamespaceError(f"Database does not exist: {database_name}") from e | |||
|
|||
def list_tables(self, namespace: Union[str, Identifier]) -> List[Identifier]: | |||
"""List tables under the given namespace in the catalog (including non-Iceberg tables). | |||
"""List Iceberg tables under the given namespace in the catalog. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I noticed that we only updated the docstring here, without a change in the code.
Does Dynamodb already only return Iceberg tables?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
It was quite a long time since I have worked on this, but if I recall correctly then yes, DynamoDB returned only Iceberg tables.
Co-authored-by: Sung Yun <107272191+sungwy@users.noreply.github.com>
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thank you again for working on this @mark-major ! I've confirmed that this behavior is consistent with Java
Closes #314
Glue and Hive catalogs
list_tables()
method filters for Iceberg tables.