diff --git a/src/snowflake/sqlalchemy/custom_types.py b/src/snowflake/sqlalchemy/custom_types.py index 3b6f93b8..ce7ad592 100644 --- a/src/snowflake/sqlalchemy/custom_types.py +++ b/src/snowflake/sqlalchemy/custom_types.py @@ -63,6 +63,10 @@ class OBJECT(StructuredType): __visit_name__ = "OBJECT" def __init__(self, **items_types: Union[TypeEngine, Tuple[TypeEngine, bool]]): + for key, value in items_types.items(): + if not isinstance(value, tuple): + items_types[key] = (value, False) + self.items_types = items_types self.is_semi_structured = len(items_types) == 0 super().__init__()