Skip to content

Commit

Permalink
added bit type to boolean
Browse files Browse the repository at this point in the history
  • Loading branch information
Josh Lloyd committed Apr 25, 2023
1 parent 72ca90d commit 0a4cd47
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions tap_mysql/client.py
Original file line number Diff line number Diff line change
Expand Up @@ -67,9 +67,10 @@ def to_jsonschema_type(
Returns:
A compatible JSON Schema type definition.
"""
# Optionally, add custom logic before calling the parent SQLConnector method.
# You may delete this method if overrides are not needed.
return SQLConnector.to_jsonschema_type(from_type)
if from_type in ["bit", "bit(1)"]:
return {"type": ["boolean"]}
else:
return SQLConnector.to_jsonschema_type(from_type)

@staticmethod
def to_sql_type(jsonschema_type: dict) -> sqlalchemy.types.TypeEngine:
Expand Down

0 comments on commit 0a4cd47

Please sign in to comment.