Skip to content

Apache DataFusion SQL Query Engine

ARROW-270: Define more generic Interval logical type

Julien Le Dem11a7ecc5333d
diff --git a/format/Message.fbs b/format/Message.fbs
index 657904a703..07da862c32 100644
--- a/format/Message.fbs
+++ b/format/Message.fbs
@@ -63,10 +63,9 @@ table Timestamp {
timezone: string;
}
-table IntervalDay {
-}
-
-table IntervalYear {
+enum IntervalUnit: short { YEAR_MONTH, DAY_TIME}
+table Interval {
+ unit: IntervalUnit;
}
table JSONScalar {
@@ -88,8 +87,7 @@ union Type {
Date,
Time,
Timestamp,
- IntervalDay,
- IntervalYear,
+ Interval,
List,
Struct_,
Union,