Skip to content

Commit 9a5ce2f

Browse files
committed
fix Decimal
1 parent d6a8c0d commit 9a5ce2f

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

rust/cubesql/cubesql/src/sql/dataframe.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -417,7 +417,7 @@ pub fn arrow_to_column_type(arrow_type: DataType) -> Result<ColumnType, CubeErro
417417
| DataType::Int32 => Ok(ColumnType::Int32),
418418
DataType::UInt32
419419
| DataType::Int64 => Ok(ColumnType::Int64),
420-
DataType::UInt64 => Ok(ColumnType::Decimal(128, 0)),
420+
DataType::UInt64 => Ok(ColumnType::Decimal(39, 0)),
421421
DataType::Null => Ok(ColumnType::String),
422422
x => Err(CubeError::internal(format!("unsupported type {:?}", x))),
423423
}
@@ -1006,7 +1006,7 @@ mod tests {
10061006
create_record_batch(
10071007
DataType::UInt64,
10081008
UInt64Array::from(data64.clone()),
1009-
ColumnType::Decimal(128, 0),
1009+
ColumnType::Decimal(39, 0),
10101010
data64
10111011
.into_iter()
10121012
.map(|e| TableValue::Decimal128(Decimal128Value::new(e as i128, 0)))

0 commit comments

Comments
 (0)