Infinidat / infi.clickhouse_orm

A Python library for working with the ClickHouse database (https://clickhouse.yandex/)
BSD 3-Clause "New" or "Revised" License
411 stars 135 forks source link

Nested data structures #21

Open pilosus opened 7 years ago

pilosus commented 7 years ago

Hi there,

is it possible to work with[ nested data structures](https://clickhouse.yandex/reference_en.html#Nested data structures)?

I tried to define model like this:

`class A(models.Model): flat_attribute = fields.StringField()

class Nested(models.Model):
    nested_attribute = fields.StringField()

nested = Nested()

`

But it raises AttributeError: type object 'A' has no attribute 'nested.nested_attribute' when using that model class in my select query.

ishirav commented 7 years ago

Currently there's no support for nested models.

li-bit commented 5 years ago

Isn't that important?

malohacker commented 3 years ago

When will the feature be implemented ?