Skip to content

Commit

Permalink
refactor: Refactor error in DataType
Browse files Browse the repository at this point in the history
  • Loading branch information
XuQianJin-Stars committed Aug 4, 2024
1 parent d10fc4c commit 1791515
Showing 1 changed file with 1 addition and 5 deletions.
6 changes: 1 addition & 5 deletions crates/paimon/src/spec/types.rs
Original file line number Diff line number Diff line change
Expand Up @@ -430,11 +430,7 @@ impl DecimalType {
Self::with_nullable(true, precision, scale)
}

pub fn with_nullable(
nullable: bool,
precision: u32,
scale: u32,
) -> Result<Self, Error> {
pub fn with_nullable(nullable: bool, precision: u32, scale: u32) -> Result<Self, Error> {
if !(Self::MIN_PRECISION..=Self::MAX_PRECISION).contains(&precision) {
return DataTypeInvalidSnafu {
message: format!(
Expand Down

0 comments on commit 1791515

Please sign in to comment.