Thalweg · API reference ← Main docs

parse_data_type

Function parse_data_type 

Source
pub fn parse_data_type(s: &str) -> ManifestResult<DataType>
Expand description

Parse a [DataType] from a manifest type string.

Supports Binary, Utf8/String, Int32, Int64, Float32, Float64, Boolean, and Decimal128(precision, scale).

§Errors

Returns ManifestError::InvalidDataType for an unknown type, a malformed Decimal128(...), or a decimal precision beyond [DECIMAL128_MAX_PRECISION].