Skip to content

Commit 6cec2da

Browse files
committed
fix unit test
1 parent 65ec5ad commit 6cec2da

File tree

1 file changed

+6
-2
lines changed

1 file changed

+6
-2
lines changed

src/query/expression/src/types/decimal.rs

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1822,8 +1822,12 @@ impl DecimalColumn {
18221822

18231823
let buffer = match self {
18241824
DecimalColumn::Decimal64(col, _) => {
1825-
let builder = Decimal64As128Type::iter_column(col).collect::<Vec<_>>();
1826-
Decimal128Type::build_column(builder).into()
1825+
if matches!(arrow_type, arrow_schema::DataType::Decimal64(_, _)) {
1826+
col.clone().into()
1827+
} else {
1828+
let builder = Decimal64As128Type::iter_column(col).collect::<Vec<_>>();
1829+
Decimal128Type::build_column(builder).into()
1830+
}
18271831
}
18281832
DecimalColumn::Decimal128(col, _) => col.clone().into(),
18291833
DecimalColumn::Decimal256(col, _) => {

0 commit comments

Comments
 (0)