File tree Expand file tree Collapse file tree 1 file changed +5
-6
lines changed Expand file tree Collapse file tree 1 file changed +5
-6
lines changed Original file line number Diff line number Diff 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 }
You can’t perform that action at this time.
0 commit comments