parquet-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From b...@apache.org
Subject parquet-format git commit: PARQUET-200: Add microsecond-precision time specs.
Date Tue, 16 Jun 2015 16:53:26 GMT
Repository: parquet-format
Updated Branches:
  refs/heads/master b281b572f -> 5b806d1e8


PARQUET-200: Add microsecond-precision time specs.

Author: Ryan Blue <blue@apache.org>

Closes #23 from rdblue/PARQUET-200-nanosecond-times and squashes the following commits:

2b1e423 [Ryan Blue] PARQUET-200: Add microsecond-precision time specs.


Project: http://git-wip-us.apache.org/repos/asf/parquet-format/repo
Commit: http://git-wip-us.apache.org/repos/asf/parquet-format/commit/5b806d1e
Tree: http://git-wip-us.apache.org/repos/asf/parquet-format/tree/5b806d1e
Diff: http://git-wip-us.apache.org/repos/asf/parquet-format/diff/5b806d1e

Branch: refs/heads/master
Commit: 5b806d1e855bf47f5234c768aefc000b704f43ab
Parents: b281b57
Author: Ryan Blue <blue@apache.org>
Authored: Tue Jun 16 09:53:17 2015 -0700
Committer: Ryan Blue <blue@apache.org>
Committed: Tue Jun 16 09:53:17 2015 -0700

----------------------------------------------------------------------
 LogicalTypes.md           | 27 ++++++++++++++++++++-------
 src/thrift/parquet.thrift | 18 ++++++++++++++++--
 2 files changed, 36 insertions(+), 9 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/parquet-format/blob/5b806d1e/LogicalTypes.md
----------------------------------------------------------------------
diff --git a/LogicalTypes.md b/LogicalTypes.md
index 413a9ca..8ca3ba4 100644
--- a/LogicalTypes.md
+++ b/LogicalTypes.md
@@ -106,16 +106,29 @@ A `SchemaElement` with the `DECIMAL` `ConvertedType` must also have
both
 annotate an `int32` that stores the number of days from the Unix epoch, 1
 January 1970.
 
-### TIME_MILLIS
+### TIME\_MILLIS
 
-`TIME_MILLIS` is used for a logical time type, without a date. It must annotate
-an `int32` that stores the number of milliseconds after midnight.
+`TIME_MILLIS` is used for a logical time type with millisecond precision,
+without a date. It must annotate an `int32` that stores the number of
+milliseconds after midnight.
 
-### TIMESTAMP_MILLIS
+### TIME\_MICROS
 
-`TIMESTAMP_MILLIS` is used for a combined logical date and time type. It must
-annotate an `int64` that stores the number of milliseconds from the Unix epoch,
-00:00:00.000 on 1 January 1970, UTC.
+`TIME_MICROS` is used for a logical time type with microsecond precision,
+without a date. It must annotate an `int64` that stores the number of
+microseconds after midnight.
+
+### TIMESTAMP\_MILLIS
+
+`TIMESTAMP_MILLIS` is used for a combined logical date and time type, with
+millisecond precision. It must annotate an `int64` that stores the number of
+milliseconds from the Unix epoch, 00:00:00.000 on 1 January 1970, UTC.
+
+### TIMESTAMP\_MICROS
+
+`TIMESTAMP_MICROS` is used for a combined logical date and time type with
+microsecond precision. It must annotate an `int64` that stores the number of
+microseconds from the Unix epoch, 00:00:00.000000 on 1 January 1970, UTC.
 
 ### INTERVAL
 

http://git-wip-us.apache.org/repos/asf/parquet-format/blob/5b806d1e/src/thrift/parquet.thrift
----------------------------------------------------------------------
diff --git a/src/thrift/parquet.thrift b/src/thrift/parquet.thrift
index 45dccce..d1b305e 100644
--- a/src/thrift/parquet.thrift
+++ b/src/thrift/parquet.thrift
@@ -93,7 +93,14 @@ enum ConvertedType {
    * as an INT32 physical type.
    */
   TIME_MILLIS = 7;
-  // RESERVED = 8; 
+
+  /**
+   * A time.
+   *
+   * The total number of microseconds since midnight.  The value is stored as
+   * an INT64 physical type.
+   */
+  TIME_MICROS = 8;
 
   /**
    * A date/time combination
@@ -102,7 +109,14 @@ enum ConvertedType {
    * a physical type of INT64.
    */
   TIMESTAMP_MILLIS = 9; 
-  // RESERVED = 10;
+
+  /**
+   * A date/time combination
+   *
+   * Date and time recorded as microseconds since the Unix epoch.  The value is
+   * stored as an INT64 physical type.
+   */
+  TIMESTAMP_MICROS = 10;
 
 
   /** 


Mime
View raw message