Skip to content

Apache DataFusion SQL Query Engine

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

Wes McKinneya91d6a233334
diff --git a/format/Message.fbs b/format/Message.fbs
index f2d5eba75e..8fdcc804d4 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;