Skip to content

Commit

Permalink
add boolean alias
Browse files Browse the repository at this point in the history
  • Loading branch information
goldmedal committed Nov 14, 2024
1 parent 8de2a50 commit 85571a5
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion wren-core/core/src/logical_plan/utils.rs
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,7 @@ pub fn map_data_type(data_type: &str) -> DataType {
}
match data_type {
// Wren Definition Types
"bool" => DataType::Boolean,
"bool" | "boolean"=> DataType::Boolean,
"tinyint" => DataType::Int8,
"int2" => DataType::Int16,
"smallint" => DataType::Int16,
Expand Down Expand Up @@ -253,6 +253,7 @@ mod test {
pub fn test_map_data_type() -> Result<()> {
let test_cases = vec![
("bool", DataType::Boolean),
("boolean", DataType::Boolean),
("tinyint", DataType::Int8),
("int2", DataType::Int16),
("smallint", DataType::Int16),
Expand Down

0 comments on commit 85571a5

Please sign in to comment.