Add `NewColumn()` to `ColumnArray`

Open Beginner friendly
#478 1 comment 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Assessment

Difficulty
2/5
Estimated time
1-3 hours
Newbie friendliness
65/100
Issue type
Feature
Clarity
Mostly clear
Activity status
Quiet
Tech stack
cpp
Domain
databases

Research direction

Start by locating ColumnArray and the existing CreateColumnByType path referenced in the issue, then inspect how array item types are represented. Done means ColumnArray exposes NewColumn() that returns a correctly typed column for its item type, with the repository’s relevant checks passing.

Written by the indexing model from the issue text.

Description

enhancement pg_clickhouse

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<ArrayType>()->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.

Dominant language
C
Stars
382
Forks
208
Avg merge
2d 19h
Merged PRs (30d)
14

Contributor guide

No contributing guide indexed for this repository

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

More from ClickHouse/clickhouse-cpp

All issues in ClickHouse/clickhouse-cpp

Similar issues

More C issues

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.