parquet-tools cat command does not consider logical type
- Dominant language
- Java
- Stars
- 3.1k
- Forks
- 1.6k
- Avg merge
- 3d 12h
- Merged PRs (30d)
- 33
Description
The parquet-tools cat command doesn't format timestamps, outputting them as numbers instead. The parquet-tools dump command does format as timestamps, so the code has been written.
Using the attached file:
$ java -jar parquet-tools-.jar cat -j datetime_utc_adjust.parquet
{"ID":1,"DT":1604297946277}
$ java -jar parquet-tools-.jar dump datetime_utc_adjust.parquet
...
INT32 ID
--------------------------------------------------------------------------------
\*\*\* row group 1 of 1, values 1 to 1 \*\*\*
value 1: R:0 D:1 V:1INT64 DT
--------------------------------------------------------------------------------
\*\*\* row group 1 of 1, values 1 to 1 \*\*\*
value 1: R:0 D:1 V:2020-11-02T06:19:06.277
**Reporter**: [john lilley](https://issues.apache.org/jira/secure/ViewProfile.jspa?name=john.lilley@redpoint.net)
#### Original Issue Attachments:
- [datetime_utc_adjust.parquet](https://issues.apache.org/jira/secure/attachment/13014585/datetime_utc_adjust.parquet)
**Note**: *This issue was originally created as [PARQUET-1943](https://issues.apache.org/jira/browse/PARQUET-1943). Please see the [migration documentation](https://issues.apache.org/jira/browse/PARQUET-2502) for further details.*
Contributor guide
No contributing guide indexed for this repository
Research direction
Start with the parquet-tools cat and dump command entry points and reproduce the issue using the attached datetime_utc_adjust.parquet file. Compare how each command handles the timestamp logical type; done means cat -j emits the timestamp in the same formatted form as dump instead of a numeric value.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- java
- Domain
- cli
- Issue type
- Bug
- Difficulty
- 3/5
- Estimated time
- 1-2 days
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 55/100