From 0a4cd479e3031963798f90d9d9c4924f32310561 Mon Sep 17 00:00:00 2001 From: Josh Lloyd Date: Tue, 25 Apr 2023 17:55:47 -0600 Subject: [PATCH] added bit type to boolean --- tap_mysql/client.py | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/tap_mysql/client.py b/tap_mysql/client.py index daa0e59..09ee5fa 100644 --- a/tap_mysql/client.py +++ b/tap_mysql/client.py @@ -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: