From 02b30be54e23adb51c12aee4e2719a719239fc10 Mon Sep 17 00:00:00 2001 From: Raunak Bhagat Date: Tue, 24 Sep 2024 13:54:40 -0700 Subject: [PATCH] [BUG] Fix display for decimal types (#2909) # Overview - fixed decimal printout - was being printed out like `{}.{}` - changed to `Decimal(precision={}, scale={})` instead --- src/daft-schema/src/dtype.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/daft-schema/src/dtype.rs b/src/daft-schema/src/dtype.rs index 48d9414aab..c7418b5549 100644 --- a/src/daft-schema/src/dtype.rs +++ b/src/daft-schema/src/dtype.rs @@ -51,7 +51,7 @@ pub enum DataType { /// Fixed-precision decimal type. /// TODO: allow negative scale once Arrow2 allows it: https://github.com/jorgecarleitao/arrow2/issues/1518 - #[display("{_0}.{_1}")] + #[display("Decimal(precision={_0}, scale={_1})")] Decimal128(usize, usize), /// A [`i64`] representing a timestamp measured in [`TimeUnit`] with an optional timezone.