Skip to content

Commit 13464da

Browse files
committed
fix[array]: invalid arbitrary decimal scalar value
Signed-off-by: Joe Isaacs <[email protected]>
1 parent 5b7b387 commit 13464da

File tree

1 file changed

+0
-16
lines changed

1 file changed

+0
-16
lines changed

vortex-scalar/src/arbitrary.rs

Lines changed: 0 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -92,20 +92,4 @@ pub fn random_decimal(u: &mut Unstructured, decimal_type: &DecimalDType) -> Resu
9292
});
9393

9494
Ok(ScalarValue(InnerScalarValue::Decimal(value)))
95-
96-
// if precision <= i128::MAX_PRECISION {
97-
// Ok(ScalarValue(InnerScalarValue::Decimal(DecimalValue::I128(
98-
// u.int_in_range(
99-
// i128::MIN_BY_PRECISION[precision as usize]
100-
// ..=i128::MAX_BY_PRECISION[precision as usize],
101-
// )?,
102-
// ))))
103-
// } else {
104-
// Ok(ScalarValue(InnerScalarValue::Decimal(DecimalValue::I256(
105-
// u.int_in_range(
106-
// i256::MIN_BY_PRECISION[precision as usize]
107-
// ..=i256::MAX_BY_PRECISION[precision as usize],
108-
// )?,
109-
// ))))
110-
// }
11195
}

0 commit comments

Comments
 (0)