apache / apache/arrow

[C++] [Parquet] StreamWriter should support writing nanosecond timestamps

Open
#36,005 4 comments 0 reactions 0 assignees View on GitHub
Component: C++ Component: Parquet Type: enhancement
Dominant language
C++
Stars
17.1k
Forks
4.3k
Avg merge
3d 18h
Merged PRs (30d)
91

Description

### Describe the enhancement requested

Currently, StreamWriter can write millisecond and microsecond timestamps, but there is no interface to write nanosecond timestamps.

Relevant code:
```
StreamWriter& operator<<(const std::chrono::milliseconds& v);

StreamWriter& operator<<(const std::chrono::microseconds& v);
```

### Component(s)

C++, Parquet

Contributor guide

Open the contributing guide

Research direction

Start by locating the StreamWriter declarations and implementations for the existing std::chrono::milliseconds and std::chrono::microseconds overloads. Trace the related Parquet timestamp-writing tests, then add coverage showing nanosecond timestamps can be written successfully; done means the new interface works and the relevant tests pass.

Written by the indexing model from the issue text.

Assessment

Tech stack
cpp
Domain
data
Issue type
Feature
Difficulty
3/5
Estimated time
1-2 days
Activity status
Quiet
Clarity
Mostly clear
Newbie friendliness
65/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.