[ 
https://issues.apache.org/jira/browse/PARQUET-861?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16410497#comment-16410497
 ] 

ASF GitHub Bot commented on PARQUET-861:
----------------------------------------

lekv closed pull request #49: PARQUET-861: Document INT96 timestamps
URL: https://github.com/apache/parquet-format/pull/49
 
 
   

This is a PR merged from a forked repository.
As GitHub hides the original diff on merge, it is displayed below for
the sake of provenance:

As this is a foreign pull request (from a fork), the diff is supplied
below (as it won't show otherwise due to GitHub magic):

diff --git a/LogicalTypes.md b/LogicalTypes.md
index c411dbfa..717b2903 100644
--- a/LogicalTypes.md
+++ b/LogicalTypes.md
@@ -144,6 +144,18 @@ example, there is no requirement that a large number of 
days should be
 expressed as a mix of months and days because there is not a constant
 conversion from days to months.
 
+### INT96 timestamps (also called IMPALA_TIMESTAMP)
+
+_(deprecated)_ Timestamps saved as an `int96` are made up of the nanoseconds 
in the day
+(first 8 byte) and the Julian day (last 4 bytes). No timezone is attached to 
this value.
+To convert the timestamp into nanoseconds since the Unix epoch, 00:00:00.000000
+on 1 January 1970, the following formula can be used:
+`(julian_day - 2440588) * (86400 * 1000 * 1000 * 1000) + nanoseconds`.
+The magic number `2440588` is the julian day for 1 January 1970.
+
+Note that these timestamps are the common usage of the `int96` physical type 
and are not
+marked with a special logical type annotation.
+
 ## Embedded Types
 
 ### JSON


 

----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on GitHub and use the
URL above to go to the specific comment.
 
For queries about this service, please contact Infrastructure at:
[email protected]


> Document INT96 timestamps
> -------------------------
>
>                 Key: PARQUET-861
>                 URL: https://issues.apache.org/jira/browse/PARQUET-861
>             Project: Parquet
>          Issue Type: Improvement
>          Components: parquet-format
>            Reporter: Uwe L. Korn
>            Assignee: Uwe L. Korn
>            Priority: Major
>
> Although considered as deprecated, they should be documented as the format is 
> quite special.



--
This message was sent by Atlassian JIRA
(v7.6.3#76005)

Reply via email to