Repository: arrow
Updated Branches:
  refs/heads/master 6239abd1a -> eaf2118ef


ARROW-887: add default value to units for backward compatibility

Author: Julien Le Dem <jul...@apache.org>

Closes #592 from julienledem/ARROW-887 and squashes the following commits:

bc49f8a [Julien Le Dem] ARROW-887: add default value to units for backward 
compatibility


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

Branch: refs/heads/master
Commit: eaf2118efc56823d93dbd57c7e9afdb1d904ac2f
Parents: 6239abd
Author: Julien Le Dem <jul...@apache.org>
Authored: Mon Apr 24 13:29:20 2017 -0700
Committer: Julien Le Dem <jul...@apache.org>
Committed: Mon Apr 24 13:29:20 2017 -0700

----------------------------------------------------------------------
 format/Schema.fbs | 6 +++---
 1 file changed, 3 insertions(+), 3 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/arrow/blob/eaf2118e/format/Schema.fbs
----------------------------------------------------------------------
diff --git a/format/Schema.fbs b/format/Schema.fbs
index ff61199..b48859f 100644
--- a/format/Schema.fbs
+++ b/format/Schema.fbs
@@ -100,7 +100,7 @@ enum DateUnit: short {
 ///   leap seconds), where the values are evenly divisible by 86400000
 /// * Days (32 bits) since the UNIX epoch
 table Date {
-  unit: DateUnit;
+  unit: DateUnit = MILLISECOND;
 }
 
 enum TimeUnit: short { SECOND, MILLISECOND, MICROSECOND, NANOSECOND }
@@ -109,8 +109,8 @@ enum TimeUnit: short { SECOND, MILLISECOND, MICROSECOND, 
NANOSECOND }
 /// - SECOND and MILLISECOND: 32 bits
 /// - MICROSECOND and NANOSECOND: 64 bits
 table Time {
-  unit: TimeUnit;
-  bitWidth: int;
+  unit: TimeUnit = MILLISECOND;
+  bitWidth: int = 32;
 }
 
 /// Time elapsed from the Unix epoch, 00:00:00.000 on 1 January 1970, UTC.

Reply via email to