Skip to content

Commit 719c69d

Browse files
committed
chore[dtype]: use NonZero fro decimal precision
Signed-off-by: Joe Isaacs <[email protected]>
1 parent a5d59f9 commit 719c69d

File tree

1 file changed

+1
-0
lines changed
  • vortex-dtype/src/decimal

1 file changed

+1
-0
lines changed

vortex-dtype/src/decimal/mod.rs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -23,6 +23,7 @@ const MAX_SCALE: i8 = <i256 as NativeDecimalType>::MAX_SCALE;
2323
/// Parameters that define the precision and scale of a decimal type.
2424
///
2525
/// Decimal types allow real numbers with a similar precision and scale to be represented exactly.
26+
/// Precision must be non-zero.
2627
#[derive(Debug, Copy, Clone, PartialEq, Eq, Hash)]
2728
#[cfg_attr(feature = "serde", derive(serde::Serialize, serde::Deserialize))]
2829
pub struct DecimalDType {

0 commit comments

Comments
 (0)