Skip to content

Commit

Permalink
[BUG] Fix display for decimal types (#2909)
Browse files Browse the repository at this point in the history
# Overview
- fixed decimal printout
- was being printed out like `{}.{}`
- changed to `Decimal(precision={}, scale={})` instead
  • Loading branch information
raunakab authored Sep 24, 2024
1 parent e3dd671 commit 02b30be
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/daft-schema/src/dtype.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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.
Expand Down

0 comments on commit 02b30be

Please sign in to comment.