Skip to content

Commit

Permalink
feat(sqlalchemy): allow non-primitive arrays
Browse files Browse the repository at this point in the history
  • Loading branch information
cpcloud committed Jul 1, 2022
1 parent f79d16f commit 4e02918
Showing 1 changed file with 0 additions and 2 deletions.
2 changes: 0 additions & 2 deletions ibis/backends/base/sql/alchemy/datatypes.py
Original file line number Diff line number Diff line change
Expand Up @@ -96,8 +96,6 @@ def _(itype, **kwargs):
@to_sqla_type.register(dt.Array)
def _(itype, **kwargs):
ibis_type = itype.value_type
if not isinstance(ibis_type, (dt.Primitive, dt.String)):
raise TypeError(f'Type {ibis_type} is not a primitive or string type')
return sa.ARRAY(to_sqla_type(ibis_type, **kwargs))


Expand Down

0 comments on commit 4e02918

Please sign in to comment.