Skip to content

[C++] ChunkedArrayResolver::Resolve is prematurely template-specialized #40280

@felipecrv

Description

@felipecrv

Describe the enhancement requested

ChunkedArrayResolver::Resolve<T> can be made more generic by always producing a ResolvedChunk<arrow::Array> instead of

  • ResolvedChunk<arrow::Int64Array>
  • ResolvedChunk<arrow::BoolArray>
  • ResolvedChunk<arrow::StringArray
  • and so on...

It's only ResolvedChunk::Value that needs to specialize on the sub-type of arrow::Array.

Other possible improvements that might end up with their own dedicated issues:

  • Make ChunkedArrayResolver constructable from std::vectors of other chunk array types (eg std::shared_ptr<Arrow>, std::shared_ptr<ArrayData> instead of just const Array
  • Make that construction step zero-copy

Component(s)

C++

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions