Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add missing Array attributes #255

Merged
merged 1 commit into from
Jul 12, 2023
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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
Loading