feat: add interval column type (#74)

* feat: add interval column type

* chore: add empty line
This commit is contained in:
Zou Wei
2023-08-03 11:50:19 +08:00
committed by GitHub
parent eeae2d0dfa
commit 940694cfd0
10 changed files with 2557 additions and 127 deletions
+9
View File
@@ -54,6 +54,9 @@ message Column {
repeated int64 time_millisecond_values = 21;
repeated int64 time_microsecond_values = 22;
repeated int64 time_nanosecond_values = 23;
repeated int32 interval_year_month_values = 24;
repeated int64 interval_day_time_values = 25;
repeated IntervalMonthDayNano interval_month_day_nano_values = 26;
}
// The array of non-null values in this column.
//
@@ -74,3 +77,9 @@ message Column {
// Helpful in creating vector from column.
ColumnDataType datatype = 5;
}
message IntervalMonthDayNano {
int32 months = 1;
int32 days = 2;
int64 nanoseconds = 3;
}
+4
View File
@@ -100,4 +100,8 @@ enum ColumnDataType {
TIME_MILLISECOND = 20;
TIME_MICROSECOND = 21;
TIME_NANOSECOND = 22;
INTERVAL_YEAR_MONTH = 23;
INTERVAL_DAY_TIME = 24;
INTERVAL_MONTH_DAY_NANO = 25;
}