commit | 552969fee3e44bbe4d535dd8c6e44895d1417728 | [log] [tgz] |
---|---|---|
author | Andrew Lamb <andrew@nerdnetworks.org> | Sun Apr 11 05:29:02 2021 -0400 |
committer | Andrew Lamb <andrew@nerdnetworks.org> | Sun Apr 11 05:29:02 2021 -0400 |
tree | 2f5c8f48588a0a7c740369549e7851e3ab2bd7ef | |
parent | 19891d0eafb8bda1084b0135cdba6fc07eec4d66 [diff] |
ARROW-12267: [Rust] Implement support for timestamps in JSON writer # Rationale I want to write timestamps to JSON (e.g. https://github.com/influxdata/influxdb_iox/pull/1104) and when I did so I got a panic :) When I tried to write a`TimestampNanosecondArray` I got the following error: ``` thread 'influxdb_ioxd::http::tests::test_query_json' panicked at 'Unsupported datatype: Timestamp( Nanosecond, None, )', /Users/alamb/.cargo/git/checkouts/arrow-3a9cfebb6b7b2bdc/3e825a7/rust/arrow/src/json/writer.rs:326:13 note: run with `RUST_BACKTRACE=1` environment variable to display a backtrace ``` # Changes Add support for `DataType::Timestamp`, and tests for same I did not add support for the other date / time / duration types, but instead filed a ticket to add such support: https://issues.apache.org/jira/browse/ARROW-12317 Closes #9968 from alamb/ARROW-12267/json_writer Authored-by: Andrew Lamb <andrew@nerdnetworks.org> Signed-off-by: Andrew Lamb <andrew@nerdnetworks.org>
Apache Arrow is a development platform for in-memory analytics. It contains a set of technologies that enable big data systems to process and move data fast.
Major components of the project include:
Arrow is an Apache Software Foundation project. Learn more at arrow.apache.org.
The reference Arrow libraries contain many distinct software components:
The official Arrow libraries in this repository are in different stages of implementing the Arrow format and related features. See our current feature matrix on git master.
Please read our latest project contribution guide.
Even if you do not plan to contribute to Apache Arrow itself or Arrow integrations in other projects, we'd be happy to have you involved: