diff --git a/src/datatypes/src/vectors/decimal.rs b/src/datatypes/src/vectors/decimal.rs index b440d2337d2c..858faa33d627 100644 --- a/src/datatypes/src/vectors/decimal.rs +++ b/src/datatypes/src/vectors/decimal.rs @@ -370,7 +370,7 @@ impl ScalarVectorBuilder for Decimal128VectorBuilder { impl Decimal128VectorBuilder { /// Change the precision and scale of the Decimal128VectorBuilder. - pub fn with_precison_and_scale(self, precision: u8, scale: i8) -> Result { + pub fn with_precision_and_scale(self, precision: u8, scale: i8) -> Result { let mutable_array = self .mutable_array .with_precision_and_scale(precision, scale) @@ -476,7 +476,7 @@ pub mod tests { #[test] fn test_decimal128_vector_builder() { let mut decimal_builder = Decimal128VectorBuilder::with_capacity(3) - .with_precison_and_scale(10, 2) + .with_precision_and_scale(10, 2) .unwrap(); decimal_builder.push(Some(Decimal128::new(100, 10, 2))); decimal_builder.push(Some(Decimal128::new(200, 10, 2)));