long2ice / asynch

An asyncio ClickHouse Python Driver with native (TCP) interface support.
https://github.com/long2ice/asynch
Apache License 2.0
186 stars 43 forks source link

LowCardinality column #2 #5

Closed dbrojas closed 3 years ago

dbrojas commented 3 years ago

This has been an issue before but I have still encountered it. (https://github.com/long2ice/asynch/issues/2)

Int types are being initialized within LowCardinality, they themselves requiring a reader and writer too.

I could make this work on my machine by passing them to the Int types in asynch/proto/columns/lowcardinalitycolumn.py line 87 and 106.

eg:

int_column = self.int_types[int_type](
    reader=self.nested_column.reader, writer=self.nested_column.writer
)