Skip to content

[C++] Kernel to construct MonthDayNanoInterval array from separate arrays of months/days/nanos #34824

@jorisvandenbossche

Description

@jorisvandenbossche

Currently it's not straightforward to construct a MonthDayNanoIntervalArray from existing data. The python layer adds conversion from timedelta/relativedelta/tuples of ints, but so that's only for generic python->arrow conversion, not if you already have arrow data. For example, converting an array of integers that represents the number of days to an interval array.

Proposal: a scalar kernel that can construct an interval array from its parts (eg month_day_nano_interval_from_parts(months, days, nanos), so where each of the months/days/nanos parts can be an array or a scalar.

Metadata

Metadata

Assignees

No one assigned

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions