From 2907d77c5f29c967a217afb04de3f51f8f45147b Mon Sep 17 00:00:00 2001 From: Raunak Bhagat Date: Tue, 24 Sep 2024 12:26:54 -0700 Subject: [PATCH] Fix display for decimal types --- 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.