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

[Issue 115] sqlalchemy: fix has_table so it honours schema= argument #174

Merged
merged 5 commits into from
Jul 12, 2023

Conversation

susodapop
Copy link
Contributor

@susodapop susodapop commented Jul 11, 2023

Description

Our has_table method was badly implemented because it didn't honour the provided schema= argument. I've updated the method and added an integration test. I also added a catalog= argument so users can run has_table across catalogs in UC-land.

Related Tickets & Documents

Closes #115

This change is branched off of #173 so there appears to be more happening than is necessary. You only need to review the last two commits. I rebased off of main so now there is a sensible number of commits.

@susodapop
Copy link
Contributor Author

I've confirmed this passes all sqlalchemy e2e tests on version 1.3.24 and 1.4.48

CleanShot 2023-07-10 at 20 31 45@2x

Jesse Whitehouse added 4 commits July 11, 2023 20:04
Closes #115

Signed-off-by: Jesse Whitehouse <jesse.whitehouse@databricks.com>
Signed-off-by: Jesse Whitehouse <jesse.whitehouse@databricks.com>
Signed-off-by: Jesse Whitehouse <jesse.whitehouse@databricks.com>
Signed-off-by: Jesse Whitehouse <jesse.whitehouse@databricks.com>
Signed-off-by: Jesse Whitehouse <jesse.whitehouse@databricks.com>
@susodapop
Copy link
Contributor Author

Synced with main to fix merge conflict.

@susodapop susodapop merged commit 22e5aaa into main Jul 12, 2023
15 checks passed
@susodapop susodapop deleted the issue-115 branch July 12, 2023 20:44
susodapop pushed a commit to unj1m/databricks-sql-python that referenced this pull request Sep 19, 2023
)

---------
Signed-off-by: Jesse Whitehouse <jesse.whitehouse@databricks.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

SQLAlchemy dialect has_table doesn't use the schema name.
3 participants