-
Notifications
You must be signed in to change notification settings - Fork 72
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]: TypeError thrown by SQLConnector child class generated by cookie cutter #967
Comments
I don't know if this is a proper python way of dealing with the issue but I have been changing the call to I have not played with this thought but I have always wonder if it might be this. The method in the client.py
stream sql.py
Nope that wasn't it I changed the client.py version to |
Thanks @BuzzCutNorman that is super helpful! Given that the method is static, I don't see why using the plain class directly, in stead of via the |
@kgpayne yeah, calling the static on the class itself sounds good. Go for it 😄 |
Sweet glad to hear that is a possible solution. Following the links in the stackoverflow issue given earlier I was trying the |
👍 |
Singer SDK Version
0.10.0
Python Version
3.8
Bug scope
Taps (catalog, state, stream maps, etc.)
Operating System
macOS
Description
Working on
tap-snowflake
I have run into an issue whereby the defaultto_jsonschema_type
static method on the generatedSnowflakeConnector
class, which simply callssuper().to_jsonschema_type(...)
raises aTypeError
onsuper()
. Removing the method on the child resolves the issue, however the child method is only safe to remove if no custom mappings are required.Taking a look online, I found this SO answer that seems to match this case.
Code
The text was updated successfully, but these errors were encountered: