Skip to content

Allow accessing ColumnArrays backing column#500

Open
IyeOnline wants to merge 1 commit into
ClickHouse:masterfrom
IyeOnline:topic/columnar-ColumnArray
Open

Allow accessing ColumnArrays backing column#500
IyeOnline wants to merge 1 commit into
ClickHouse:masterfrom
IyeOnline:topic/columnar-ColumnArray

Conversation

@IyeOnline
Copy link
Copy Markdown
Contributor

When working with a ColumnArray, it is oftentimes useful to be able to
access the entire, contiguous backing array at once without having to do
row-wise access.

This change simply allows reading access to the backing data array and
the offsets.

In my concrete usecase I want to fetch data from clickhouse and put it into our columnar (Apache Arrow) data representation.
Doing this recursively and efficiently gets much easier with this access.

Given that e.g. ColumnVector directly exposes writable access to its backing std::vector and ColumnArray itself is brittle
against modifcation of passed-in columns, I dont see a downside with making this API public.

When working with a ColumnArray, it is oftentimes useful to be able to
access the entire, contiguous backing array at once without having to do
row-wise access.

This change simply allows reading access to the backing data array and
the offsets.
@IyeOnline IyeOnline requested review from mzitnik and slabko as code owners May 21, 2026 17:59
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant