ClickHouse / ClickHouse/clickhouse-cpp

Add `NewColumn()` to `ColumnArray`

未关闭 适合新手
#478 1 条评论 0 个 reaction 已指派 0 人 在 GitHub 查看
enhancement pg_clickhouse
主要语言
C
星标
382
派生
208
平均合并
2 天 19 小时
30 天内合并 PR
14

描述

When inserting into Array columns, pg_clickhouse needs to create a new column matching the array's item type. The current API requires the verbose pattern:

CreateColumnByType(arrcol->GetType().As()->GetItemType()->GetName())

A NewColumn() method on ColumnArray that returns a properly typed column directly would simplify this and reduce the chance of type-name mismatches.

贡献指南

这个仓库没有索引到贡献指南

调研方向

首先定位 ColumnArray 以及 issue 中引用的现有 CreateColumnByType 路径,然后检查数组项类型是如何表示的。当 ColumnArray 提供 NewColumn(),并为其项类型返回类型正确的列,且仓库相关的检查通过时,即表示完成。

由索引模型根据 Issue 内容生成。

评估

技术栈
cpp
领域
databases
Issue 类型
功能
难度
2/5
预计耗时
1-3 小时
活跃度
冷清
描述清晰度
基本清楚
新手友好度
65/100

把新 issue 发到你的邮箱

精选适合新手参与的 GitHub issue 摘要。