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

Several fixes and additions #153

Open
wants to merge 20 commits into
base: main
Choose a base branch
from
Open
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
Fixing decimal
  • Loading branch information
Plozano94 committed Feb 27, 2024
commit 23d51040f5fd98275a79df8c48e7230fbbb16804
2 changes: 1 addition & 1 deletion target_clickhouse/connectors.py
Original file line number Diff line number Diff line change
Expand Up @@ -66,7 +66,7 @@ def nullabilizer(jsonschema_type: dict, type: sqlalchemy.types.TypeEngine):
if th._jsonschema_type_check(jsonschema_type, ("integer",)):
return nullabilizer(jsonschema_type, t.cast(sqlalchemy.types.TypeEngine, sqlalchemy.types.INTEGER()))
if th._jsonschema_type_check(jsonschema_type, ("number",)):
return nullabilizer(jsonschema_type, t.cast(sqlalchemy.types.TypeEngine, sqlalchemy.types.DECIMAL()))
return nullabilizer(jsonschema_type, t.cast(sqlalchemy.types.TypeEngine, sqlalchemy.types.FLOAT()))
if th._jsonschema_type_check(jsonschema_type, ("boolean",)):
return nullabilizer(jsonschema_type, t.cast(sqlalchemy.types.TypeEngine, sqlalchemy.types.BOOLEAN()))

Expand Down