Skip to content

Commit 47571e5

Browse files
authored
feat(cubestore): Allow tinyint type (map as Int) (#6174)
1 parent 2895721 commit 47571e5

File tree

1 file changed

+1
-1
lines changed
  • rust/cubestore/cubestore/src/sql

1 file changed

+1
-1
lines changed

rust/cubestore/cubestore/src/sql/mod.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1407,7 +1407,7 @@ fn convert_columns_type(columns: &Vec<ColumnDef>) -> Result<Vec<Column>, CubeErr
14071407
DataType::Custom(custom) => {
14081408
let custom_type_name = custom.to_string().to_lowercase();
14091409
match custom_type_name.as_str() {
1410-
"mediumint" => ColumnType::Int,
1410+
"tinyint" | "mediumint" => ColumnType::Int,
14111411
"bytes" => ColumnType::Bytes,
14121412
"varbinary" => ColumnType::Bytes,
14131413
"hyperloglog" => ColumnType::HyperLogLog(HllFlavour::Airlift),

0 commit comments

Comments
 (0)