Repository: arrow Updated Branches: refs/heads/master 6cd82c2a2 -> 98a52b482
ARROW-316: [Format] Changes to Date metadata format per discussion in ARROW-316 Author: Wes McKinney <wes.mckin...@twosigma.com> Closes #390 from wesm/ARROW-316 and squashes the following commits: 6828e05 [Wes McKinney] Format changes for Date per discussion in ARROW-316 Project: http://git-wip-us.apache.org/repos/asf/arrow/repo Commit: http://git-wip-us.apache.org/repos/asf/arrow/commit/98a52b48 Tree: http://git-wip-us.apache.org/repos/asf/arrow/tree/98a52b48 Diff: http://git-wip-us.apache.org/repos/asf/arrow/diff/98a52b48 Branch: refs/heads/master Commit: 98a52b4823f3cd0880eaef066dc932f533170292 Parents: 6cd82c2 Author: Wes McKinney <wes.mckin...@twosigma.com> Authored: Mon Mar 20 10:44:15 2017 -0700 Committer: Julien Le Dem <jul...@dremio.com> Committed: Mon Mar 20 10:44:15 2017 -0700 ---------------------------------------------------------------------- format/Message.fbs | 13 ++++++++++++- 1 file changed, 12 insertions(+), 1 deletion(-) ---------------------------------------------------------------------- http://git-wip-us.apache.org/repos/asf/arrow/blob/98a52b48/format/Message.fbs ---------------------------------------------------------------------- diff --git a/format/Message.fbs b/format/Message.fbs index 2af26d4..e56366d 100644 --- a/format/Message.fbs +++ b/format/Message.fbs @@ -81,8 +81,19 @@ table Decimal { scale: int; } -/// Date is a 64-bit type representing milliseconds since the UNIX epoch +enum DateUnit: short { + DAY, + MILLISECOND +} + +/// Date is either a 32-bit or 64-bit type representing elapsed time since UNIX +/// epoch (1970-01-01), stored in either of two units: +/// +/// * Milliseconds (64 bits) indicating UNIX time elapsed since the epoch (no +/// leap seconds), where the values are evenly divisible by 86400000 +/// * Days (32 bits) since the UNIX epoch table Date { + unit: DateUnit; } enum TimeUnit: short { SECOND, MILLISECOND, MICROSECOND, NANOSECOND }