From 75ca5d612b1c80582b03e4128a555cad633fd19c Mon Sep 17 00:00:00 2001 From: dennis zhuang Date: Wed, 20 Sep 2023 20:53:19 +0800 Subject: [PATCH] feat: supports binary data type (#2454) --- src/sql/src/statements.rs | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/src/sql/src/statements.rs b/src/sql/src/statements.rs index cdb1c3c9ae5a..3bb715f41fbf 100644 --- a/src/sql/src/statements.rs +++ b/src/sql/src/statements.rs @@ -386,9 +386,10 @@ pub fn sql_data_type_to_concrete_data_type(data_type: &SqlDataType) -> Result Ok(ConcreteDataType::float64_datatype()), SqlDataType::Boolean => Ok(ConcreteDataType::boolean_datatype()), SqlDataType::Date => Ok(ConcreteDataType::date_datatype()), - SqlDataType::Blob(_) | SqlDataType::Bytea | SqlDataType::Varbinary(_) => { - Ok(ConcreteDataType::binary_datatype()) - } + SqlDataType::Binary(_) + | SqlDataType::Blob(_) + | SqlDataType::Bytea + | SqlDataType::Varbinary(_) => Ok(ConcreteDataType::binary_datatype()), SqlDataType::Datetime(_) => Ok(ConcreteDataType::datetime_datatype()), SqlDataType::Timestamp(precision, _) => Ok(precision .as_ref()