Skip to content

Commit

Permalink
feat: supports binary data type (GreptimeTeam#2454)
Browse files Browse the repository at this point in the history
  • Loading branch information
killme2008 authored and paomian committed Oct 19, 2023
1 parent 3e3cc9c commit 75ca5d6
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions src/sql/src/statements.rs
Original file line number Diff line number Diff line change
Expand Up @@ -386,9 +386,10 @@ pub fn sql_data_type_to_concrete_data_type(data_type: &SqlDataType) -> Result<Co
SqlDataType::Double => 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()
Expand Down

0 comments on commit 75ca5d6

Please sign in to comment.