Skip to content

Commit

Permalink
[Proposal] Add MONTH_DAY_NANO interval type
Browse files Browse the repository at this point in the history
  • Loading branch information
emkornfield committed Apr 27, 2021
1 parent 70755a1 commit 30e4207
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 2 deletions.
6 changes: 5 additions & 1 deletion format/Schema.fbs
Original file line number Diff line number Diff line change
Expand Up @@ -246,7 +246,7 @@ table Timestamp {
timezone: string;
}

enum IntervalUnit: short { YEAR_MONTH, DAY_TIME}
enum IntervalUnit: short { YEAR_MONTH, DAY_TIME, MONTH_DAY_NANO}
// A "calendar" interval which models types that don't necessarily
// have a precise duration without the context of a base timestamp (e.g.
// days can differ in length during day light savings time transitions).
Expand All @@ -255,6 +255,10 @@ enum IntervalUnit: short { YEAR_MONTH, DAY_TIME}
// DAY_TIME - Indicates the number of elapsed days and milliseconds,
// stored as 2 contiguous 32-bit integers (8-bytes in total). Support
// of this IntervalUnit is not required for full arrow compatibility.
// MONTH_DAY_NANOS - A triple of (# of months, # of days, # nanoseconds).
// The values are stored contiguously in 16 byte blocks. Months and
// days are encoded as 32 bit integers and nanoseconds is encoded as a
// 64 bit integer.
table Interval {
unit: IntervalUnit;
}
Expand Down

0 comments on commit 30e4207

Please sign in to comment.