Skip to content

Commit

Permalink
docs: updated schema.rs to use the right signature for decimal data t…
Browse files Browse the repository at this point in the history
…ype in documentation (#1377)

# Description
docs: Minor change in the docs. The documentation says
Decimal(\<scale\>, \<precision\>) but it should be
Decimal(\<precision\>, \<scale\>)

# Related Issue(s)
<!---
For example:

- closes #106
--->

# Documentation

<!---
Share links to useful documentation
--->
  • Loading branch information
rahulj51 authored May 18, 2023
1 parent 1b01f9f commit dde2f7e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion python/src/schema.rs
Original file line number Diff line number Diff line change
Expand Up @@ -110,7 +110,7 @@ fn python_type_to_schema(ob: PyObject, py: Python) -> PyResult<SchemaDataType> {
/// * "binary",
/// * "date",
/// * "timestamp",
/// * "decimal(<scale>, <precision>)"
/// * "decimal(<precision>, <scale>)"
///
/// :param data_type: string representation of the data type
#[pyclass(module = "deltalake.schema", text_signature = "(data_type)")]
Expand Down

0 comments on commit dde2f7e

Please sign in to comment.