Skip to content
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

fix(trino): fix sql for querying metadata #834

Merged
merged 2 commits into from
Oct 18, 2024
Merged

Conversation

grieve54706
Copy link
Contributor

Resolves #833

@github-actions github-actions bot added ibis trino python Pull requests that update Python code labels Oct 17, 2024
@@ -38,7 +38,7 @@ def get_table_list(self) -> list[Table]:
AND t.table_name = c.table_name
INNER JOIN
system.metadata.table_comments AS tc
ON t.table_catalog = c.table_catalog
ON t.table_catalog = tc.catalog_name
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I found this change isn't covered by the current tests. Even if I roll back the change, the Trino test is pass. I think it would be better if we provide a new test covering this change.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks for the heads up! I didn't realize this bug was only in the tpch.tiny.customer table. I'll update the test cases to reflect that.

Copy link
Contributor

@goldmedal goldmedal left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks @grieve54706 I have double checked the test can cover this change. 👍
LGTM

@goldmedal goldmedal merged commit 8ef49d8 into main Oct 18, 2024
6 of 7 checks passed
@goldmedal goldmedal deleted the bugfix/trino-metadata branch October 18, 2024 04:12
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
ibis python Pull requests that update Python code trino
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Having duplicated column on Trino metadata API
2 participants