ClickHouse / ClickHouse/clickhouse-cpp

Nested tables support

オープン
#40 コメント 7 件 リアクション 0 件 担当者 0 名 GitHub で見る
enhancement priority-low
主要言語
C
スター
382
フォーク
209
平均マージ
1日 22時間
マージ済み PR(30日)
13

説明

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?

コントリビューションガイド

このリポジトリのコントリビューションガイドは索引されていません

調査の方向性

この issue ではリポジトリのファイルもテストも指定されていません。まず clickhouse-cpp API から始め、示されている Nested テーブルを使って Block.AppendColumn での失敗を再現してください。ネストされたカラムがサポートされているかを確認し、想定されている挿入 API または workaround を明確にしてください。Nested テーブルのサポートについて合意された範囲が定まり、その結果をカバーするドキュメントまたはテストが用意されれば完了です。

索引モデルが issue の本文から書いたものです。

評価

技術スタック
cpp
領域
api, databases
issue の種類
機能追加
難易度
5/5
見積もり時間
1週間以上
活発さ
停滞
明瞭さ
説明が足りない
初心者へのやさしさ
25/100

新しい issue をメールで受け取る

初心者向けの GitHub issue を短くまとめたダイジェスト。