Skip to content

Conversation

@john-bodley
Copy link
Contributor

@john-bodley john-bodley commented Oct 14, 2022

Description

This is where type enforcement would be really helpful (see #208). For the SQLAlchemy dialect the has_schema method was being passed the SQLAlchemy engine as opposed to the corresponding connection per here. Both objects have an execute(...) method which is why the tests worked, however I thought it was prudent to make make sure the callers used the correct arguments.

Non-technical explanation

Release notes

(x) This is not user-visible or docs only and no release notes are required.
( ) Release notes are required, please propose a release note for me.
( ) Release notes are required, with the following suggested text:

* Fix some things. ({issue}`issuenumber`)

@cla-bot cla-bot bot added the cla-signed label Oct 14, 2022
@john-bodley john-bodley changed the title [tests] Fix has_schema arguments [tests] Fix TrinoDialect.has_schema arguments Oct 14, 2022
@john-bodley john-bodley marked this pull request as ready for review October 14, 2022 01:19
@john-bodley john-bodley requested review from mdesmet and removed request for hovaesco October 14, 2022 01:19
@mdesmet
Copy link
Contributor

mdesmet commented Oct 27, 2022

@hashhar : PTAL

@ebyhr ebyhr force-pushed the john-bodley--fix-tests-has-schema branch from d702c75 to 389a3a9 Compare October 28, 2022 09:18
@ebyhr ebyhr merged commit 5041972 into trinodb:master Oct 28, 2022
@ebyhr
Copy link
Member

ebyhr commented Oct 28, 2022

Merged, thanks!

I fixed commit title. Please follow this guideline from next time. https://chris.beams.io/posts/git-commit/

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Development

Successfully merging this pull request may close these issues.

4 participants