Skip to content

Nested tables support #40

Open
Open
@Ryssiouk11B

Description

@Ryssiouk11B

If I have simple table like this:

CREATE TABLE test.nested
(
account UInt64,
Orders Nested(
id UInt64,
order_id String)
)
ENGINE = MergeTree
ORDER BY account

account │ UInt64
Orders.id │ Array(UInt64)
Orders.order_id │ Array(String)

How I can insert data into this table using clickhouse-cpp API? I’m working with Orders.id and Orders.order_id columns as arrays but when method block.AppendColumn called, I’m getting exception:
all columns in block must have same count of rows.

Is there any existing workaround or plans to extend API for nested tables support?

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions