From 44a659192955de6186409b97a3d5634d68193103 Mon Sep 17 00:00:00 2001 From: QuenKar <47681251+QuenKar@users.noreply.github.com> Date: Thu, 16 Nov 2023 10:19:02 +0800 Subject: [PATCH] chore: fix finish() --- src/datatypes/src/vectors/decimal.rs | 5 ----- 1 file changed, 5 deletions(-) diff --git a/src/datatypes/src/vectors/decimal.rs b/src/datatypes/src/vectors/decimal.rs index 858faa33d627..bb3402470bd1 100644 --- a/src/datatypes/src/vectors/decimal.rs +++ b/src/datatypes/src/vectors/decimal.rs @@ -357,14 +357,9 @@ impl ScalarVectorBuilder for Decimal128VectorBuilder { } fn finish(&mut self) -> Self::VectorType { - // Arrow array builder will discard precision and scale information when finish. - // This behavior may not be reasonable. Decimal128Vector { array: self.mutable_array.finish(), } - .with_precision_and_scale(self.precision, self.scale) - // unwrap is safe because we have checked the precision and scale in builder. - .unwrap() } }