apache / apache/parquet-java

parquet-tools cat command does not consider logical type

Open
#2,547 0 comments 0 reactions 0 assignees View on GitHub
Component: Java Component: Parquet Priority: Critical Type: bug
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

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.