You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@arrow.apache.org by we...@apache.org on 2017/03/19 05:03:54 UTC

arrow git commit: ARROW-617: [Format] Add additional Time metadata and comments based on discussion in ARROW-617

Repository: arrow
Updated Branches:
  refs/heads/master a9f0c63ad -> 4c5f79c39


ARROW-617: [Format] Add additional Time metadata and comments based on discussion in ARROW-617

Author: Wes McKinney <we...@twosigma.com>

Closes #385 from wesm/ARROW-617 and squashes the following commits:

f9f0571 [Wes McKinney] Add metadata and comments based on discussion in ARROW-617


Project: http://git-wip-us.apache.org/repos/asf/arrow/repo
Commit: http://git-wip-us.apache.org/repos/asf/arrow/commit/4c5f79c3
Tree: http://git-wip-us.apache.org/repos/asf/arrow/tree/4c5f79c3
Diff: http://git-wip-us.apache.org/repos/asf/arrow/diff/4c5f79c3

Branch: refs/heads/master
Commit: 4c5f79c39c2b22afe68becf1d1e7a93ca781f88d
Parents: a9f0c63
Author: Wes McKinney <we...@twosigma.com>
Authored: Sun Mar 19 01:03:47 2017 -0400
Committer: Wes McKinney <we...@twosigma.com>
Committed: Sun Mar 19 01:03:47 2017 -0400

----------------------------------------------------------------------
 format/Message.fbs | 7 ++++++-
 1 file changed, 6 insertions(+), 1 deletion(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/arrow/blob/4c5f79c3/format/Message.fbs
----------------------------------------------------------------------
diff --git a/format/Message.fbs b/format/Message.fbs
index f2d5eba..8fdcc80 100644
--- a/format/Message.fbs
+++ b/format/Message.fbs
@@ -81,16 +81,21 @@ table Decimal {
   scale: int;
 }
 
+/// Date is a 64-bit type representing milliseconds since the UNIX epoch
 table Date {
 }
 
 enum TimeUnit: short { SECOND, MILLISECOND, MICROSECOND, NANOSECOND }
 
+/// Time type. The physical storage type depends on the unit
+/// - SECOND and MILLISECOND: 32 bits
+/// - MICROSECOND and NANOSECOND: 64 bits
 table Time {
   unit: TimeUnit;
+  bitWidth: int;
 }
 
-/// time from the Unix epoch, 00:00:00.000 on 1 January 1970, UTC.
+/// Time elapsed from the Unix epoch, 00:00:00.000 on 1 January 1970, UTC.
 table Timestamp {
   unit: TimeUnit;