Skip to content

Commit 35535b0

Browse files
committed
feat: Support u/tinityint + usinged for smallint/int/bigint
1 parent 6e51e17 commit 35535b0

1 file changed

Lines changed: 5 additions & 0 deletions

File tree

datafusion/core/src/sql/planner.rs

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2537,9 +2537,14 @@ fn extract_possible_join_keys(
25372537
pub fn convert_data_type(sql_type: &SQLDataType) -> Result<DataType> {
25382538
match sql_type {
25392539
SQLDataType::Boolean => Ok(DataType::Boolean),
2540+
SQLDataType::TinyInt(_) => Ok(DataType::Int8),
2541+
SQLDataType::UnsignedTinyInt(_) => Ok(DataType::UInt8),
25402542
SQLDataType::SmallInt(_) => Ok(DataType::Int16),
2543+
SQLDataType::UnsignedSmallInt(_) => Ok(DataType::UInt16),
25412544
SQLDataType::Int(_) => Ok(DataType::Int32),
2545+
SQLDataType::UnsignedInt(_) => Ok(DataType::UInt32),
25422546
SQLDataType::BigInt(_) => Ok(DataType::Int64),
2547+
SQLDataType::UnsignedBigInt(_) => Ok(DataType::UInt64),
25432548
SQLDataType::Float(_) => Ok(DataType::Float32),
25442549
SQLDataType::Real => Ok(DataType::Float32),
25452550
SQLDataType::Double => Ok(DataType::Float64),

0 commit comments

Comments
 (0)