Skip to content

Commit

Permalink
Add description of decimal primitive to SchemaDataType (#1281)
Browse files Browse the repository at this point in the history
# Description
Add description of `decimal` primitive into the documentation comment of
`schema::SchemaDataType`

# Related Issue(s)
- closes #1280 

# Documentation

[schema::SchemaDataType](https://docs.rs/deltalake/latest/deltalake/schema/enum.SchemaDataType.html)

Signed-off-by: Shingo OKAWA <shingo.okawa.g.h.c@gmail.com>
  • Loading branch information
ognis1205 authored Apr 14, 2023
1 parent 21b9f76 commit 216fc85
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions rust/src/schema.rs
Original file line number Diff line number Diff line change
Expand Up @@ -300,6 +300,7 @@ pub enum SchemaDataType {
/// * binary: a sequence of binary data
/// * date: A calendar date, represented as a year-month-day triple without a timezone
/// * timestamp: Microsecond precision timestamp without a timezone
/// * decimal: Signed decimal number with fixed precision (maximum number of digits) and scale (number of digits on right side of dot), where the precision and scale can be up to 38
primitive(String),
/// Variant representing a struct.
r#struct(SchemaTypeStruct),
Expand Down

0 comments on commit 216fc85

Please sign in to comment.