You are viewing a plain text version of this content. The canonical link for it is here.
Posted to jira@arrow.apache.org by "Andrew Lamb (Jira)" <ji...@apache.org> on 2021/04/15 10:57:00 UTC

[jira] [Assigned] (ARROW-12317) [Rust] JSON writer does not support time, date or interval types

     [ https://issues.apache.org/jira/browse/ARROW-12317?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Andrew Lamb reassigned ARROW-12317:
-----------------------------------

    Assignee: QP Hou

> [Rust] JSON writer does not support time, date or interval types
> ----------------------------------------------------------------
>
>                 Key: ARROW-12317
>                 URL: https://issues.apache.org/jira/browse/ARROW-12317
>             Project: Apache Arrow
>          Issue Type: Improvement
>          Components: Rust
>            Reporter: Andrew Lamb
>            Assignee: QP Hou
>            Priority: Major
>              Labels: pull-request-available
>          Time Spent: 1h 20m
>  Remaining Estimate: 0h
>
> While working on https://issues.apache.org/jira/browse/ARROW-12267 , adding support for writing Timestamp types, I noticed we were also lacking support for other time types. Specifically, if you try to write an array with any of the following types as JSON it will panic:
> An example of adding support for timestamps is on https://github.com/apache/arrow/pull/9968
> ```
> pub type Date32Array = PrimitiveArray<Date32Type>;
> pub type Date64Array = PrimitiveArray<Date64Type>;
> pub type Time32SecondArray = PrimitiveArray<Time32SecondType>;
> pub type Time32MillisecondArray = PrimitiveArray<Time32MillisecondType>;
> pub type Time64MicrosecondArray = PrimitiveArray<Time64MicrosecondType>;
> pub type Time64NanosecondArray = PrimitiveArray<Time64NanosecondType>;
> pub type IntervalYearMonthArray = PrimitiveArray<IntervalYearMonthType>;
> pub type IntervalDayTimeArray = PrimitiveArray<IntervalDayTimeType>;
> pub type DurationSecondArray = PrimitiveArray<DurationSecondType>;
> pub type DurationMillisecondArray = PrimitiveArray<DurationMillisecondType>;
> pub type DurationMicrosecondArray = PrimitiveArray<DurationMicrosecondType>;
> pub type DurationNanosecondArray = PrimitiveArray<DurationNanosecondType>;
> ```



--
This message was sent by Atlassian Jira
(v8.3.4#803005)