We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 65ec5ad commit 6cec2daCopy full SHA for 6cec2da
src/query/expression/src/types/decimal.rs
@@ -1822,8 +1822,12 @@ impl DecimalColumn {
1822
1823
let buffer = match self {
1824
DecimalColumn::Decimal64(col, _) => {
1825
- let builder = Decimal64As128Type::iter_column(col).collect::<Vec<_>>();
1826
- Decimal128Type::build_column(builder).into()
+ if matches!(arrow_type, arrow_schema::DataType::Decimal64(_, _)) {
+ col.clone().into()
1827
+ } else {
1828
+ let builder = Decimal64As128Type::iter_column(col).collect::<Vec<_>>();
1829
+ Decimal128Type::build_column(builder).into()
1830
+ }
1831
}
1832
DecimalColumn::Decimal128(col, _) => col.clone().into(),
1833
DecimalColumn::Decimal256(col, _) => {
0 commit comments