apache / apache/arrow-nanoarrow

Implement iterator for StructArray

Open
#593 4 comments 0 reactions 0 assignees View on GitHub
Dominant language
C
Stars
249
Forks
68
Avg merge
2d 21h
Merged PRs (30d)
11

Description

Right now if you were to use the C++ library with nanoarrow and read in a stream of two dimensional objects, you would:

1. Use the `ViewArrayStream` class to iterate the stream
2. Manually loop over each schema / array in the StructArray
3. Use the `ViewArrayAs` class to iterate the individual array views

Not sure if this falls in the scope of nanoarrow or if its something for sparrow, but I think it would make sense to add an iterator for step 2

Contributor guide

No contributing guide indexed for this repository

Research direction

Start by reading ViewArrayStream and ViewArrayAs usage around StructArray handling, then compare whether the iterator belongs in nanoarrow or sparrow. Done means callers can iterate the individual arrays in a StructArray without manually looping over its schema and array components.

Written by the indexing model from the issue text.

Assessment

Tech stack
cpp
Domain
data
Issue type
Feature
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.