mirror of
https://github.com/GreptimeTeam/greptimedb.git
synced 2026-05-29 11:20:38 +00:00
feat: impl time type (#1961)
* chore: remove useless Option type in plugins (#1544) Co-authored-by: paomian <qtang@greptime.com> * chore: remove useless Option type in plugins (#1544) Co-authored-by: paomian <qtang@greptime.com> * chore: remove useless Option type in plugins (#1544) Co-authored-by: paomian <qtang@greptime.com> * chore: remove useless Option type in plugins (#1544) Co-authored-by: paomian <qtang@greptime.com> * feat: first commit for time type * feat: impl time type * fix: arrow vectors type conversion * test: add time test * test: adds more tests for time type * chore: style * fix: sqlness result * Update src/common/time/src/time.rs Co-authored-by: Lei, HUANG <6406592+v0y4g3r@users.noreply.github.com> * chore: CR comments --------- Co-authored-by: localhost <xpaomian@gmail.com> Co-authored-by: paomian <qtang@greptime.com> Co-authored-by: Lei, HUANG <6406592+v0y4g3r@users.noreply.github.com>
This commit is contained in:
@@ -396,6 +396,10 @@ pub fn concrete_data_type_to_sql_data_type(data_type: &ConcreteDataType) -> Resu
|
||||
Some(ts_type.precision()),
|
||||
TimezoneInfo::None,
|
||||
)),
|
||||
ConcreteDataType::Time(time_type) => Ok(SqlDataType::Time(
|
||||
Some(time_type.precision()),
|
||||
TimezoneInfo::None,
|
||||
)),
|
||||
ConcreteDataType::Binary(_) => Ok(SqlDataType::Varbinary(None)),
|
||||
ConcreteDataType::Null(_) | ConcreteDataType::List(_) | ConcreteDataType::Dictionary(_) => {
|
||||
unreachable!()
|
||||
|
||||
Reference in New Issue
Block a user