Skip to content

Commit

Permalink
Merge pull request #255 from jonburdo/fix-array-attributes
Browse files Browse the repository at this point in the history
Add missing Array attributes
  • Loading branch information
xzkostyan authored Jul 12, 2023
2 parents 800dcfb + 49ef908 commit 9545a17
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions clickhouse_sqlalchemy/types/common.py
Original file line number Diff line number Diff line change
Expand Up @@ -30,11 +30,17 @@ class Boolean(types.Boolean, ClickHouseTypeEngine):
class Array(ClickHouseTypeEngine):
__visit_name__ = 'array'

hashable = False

def __init__(self, item_type):
self.item_type = item_type
self.item_type_impl = to_instance(item_type)
super(Array, self).__init__()

@property
def python_type(self):
return list

def literal_processor(self, dialect):
item_processor = self.item_type_impl.literal_processor(dialect)

Expand Down

0 comments on commit 9545a17

Please sign in to comment.