We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
2 parents 69b23e8 + ba23683 commit 543b34cCopy full SHA for 543b34c
src/databricks/sqlalchemy/dialect/compiler.py
@@ -46,7 +46,9 @@ def visit_JSON(self, type_):
46
return "STRUCT"
47
48
def visit_ARRAY(self, type_):
49
- if type_.item_type == 'VARCHAR':
+ element_type = type_.item_type
50
+ element_type = str(element_type)
51
+ if element_type == 'VARCHAR':
52
return "ARRAY<STRING>"
53
else:
54
return "ARRAY<{type}>".format(type=type_.item_type)
0 commit comments