Skip to content

Commit bf269fd

Browse files
committed
Disable small decimal to-arrow conversion
Signed-off-by: Adam Gutglick <[email protected]>
1 parent 619bd35 commit bf269fd

File tree

1 file changed

+6
-5
lines changed

1 file changed

+6
-5
lines changed

vortex-dtype/src/arrow.rs

Lines changed: 6 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -214,12 +214,13 @@ impl DType {
214214
let scale = dt.scale();
215215

216216
match precision {
217-
// DECIMAL32_MAX_PRECISION
218-
0..=9 => DataType::Decimal32(precision, scale),
219-
// DECIMAL64_MAX_PRECISION
220-
10..=18 => DataType::Decimal64(precision, scale),
217+
// This code is commented out until DataFusion improves its support for smaller decimals.
218+
// // DECIMAL32_MAX_PRECISION
219+
// 0..=9 => DataType::Decimal32(precision, scale),
220+
// // DECIMAL64_MAX_PRECISION
221+
// 10..=18 => DataType::Decimal64(precision, scale),
221222
// DECIMAL128_MAX_PRECISION
222-
19..=38 => DataType::Decimal128(precision, scale),
223+
0..=38 => DataType::Decimal128(precision, scale),
223224
// DECIMAL256_MAX_PRECISION
224225
39.. => DataType::Decimal256(precision, scale),
225226
}

0 commit comments

Comments
 (0)