Skip to content

Commit 727e391

Browse files
committed
.
1 parent 7ed0c5b commit 727e391

File tree

1 file changed

+5
-6
lines changed

1 file changed

+5
-6
lines changed

vortex-dtype/src/arrow.rs

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

201201
match precision {
202-
// This code is commented out until DataFusion improves its support for smaller decimals.
203-
// // DECIMAL32_MAX_PRECISION
204-
// 0..=9 => DataType::Decimal32(precision, scale),
205-
// // DECIMAL64_MAX_PRECISION
206-
// 10..=18 => DataType::Decimal64(precision, scale),
202+
// DECIMAL32_MAX_PRECISION
203+
0..=9 => DataType::Decimal32(precision, scale),
204+
// DECIMAL64_MAX_PRECISION
205+
10..=18 => DataType::Decimal64(precision, scale),
207206
// DECIMAL128_MAX_PRECISION
208-
0..=38 => DataType::Decimal128(precision, scale),
207+
19..=38 => DataType::Decimal128(precision, scale),
209208
// DECIMAL256_MAX_PRECISION
210209
39.. => DataType::Decimal256(precision, scale),
211210
}

0 commit comments

Comments
 (0)