clickhouse-cpp icon indicating copy to clipboard operation
clickhouse-cpp copied to clipboard

Add `NewColumn()` to `ColumnArray`

Open theory opened this issue 1 month ago • 0 comments

Returns a new column of the proper type for inserting new values. Useful for contexts in which the item type isn't immediately known. Not a blocker for my project but would be a much nicer API to use the current approach, which is:

auto items = CreateColumnByType(
	col_type.As<clickhouse::ArrayType>()->GetItemType()->GetName()
);

theory avatar Nov 11 '25 18:11 theory