You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@parquet.apache.org by "john lilley (Jira)" <ji...@apache.org> on 2020/11/02 14:40:00 UTC

[jira] [Created] (PARQUET-1943) parquet-tools cat command does not consider logical type

john lilley created PARQUET-1943:
------------------------------------

             Summary: parquet-tools cat command does not consider logical type
                 Key: PARQUET-1943
                 URL: https://issues.apache.org/jira/browse/PARQUET-1943
             Project: Parquet
          Issue Type: Bug
          Components: parquet-mr
    Affects Versions: 1.11.1
            Reporter: john lilley
         Attachments: datetime_utc_adjust.parquet

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-<VERSION>.jar cat -j datetime_utc_adjust.parquet
{"ID":1,"DT":1604297946277} 

$ java -jar parquet-tools-<VERSION>.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

 



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