Module cast_utils
Expand description
Parser
implementations for converting strings to Arrow types
Used by the CSV and JSON readers to convert strings to Arrow types
Structs§
- Interval
Parse Config - Config to parse interval strings
Enums§
- Interval
Unit - Represents the units of an interval, with each variant corresponding to a bit in the interval’s bitfield representation
Traits§
- Parser
- Specialized parsing implementations to convert strings to Arrow types.
Functions§
- parse_
decimal - Parse the string format decimal value to i128/i256 format and checking the precision and scale. The result value can’t be out of bounds.
- parse_
interval_ day_ time - Parse human-readable interval string to Arrow IntervalDayTimeType
- parse_
interval_ month_ day_ nano - Parse human-readable interval string to Arrow IntervalMonthDayNanoType
- parse_
interval_ month_ day_ nano_ config - Parse human-readable interval string to Arrow IntervalMonthDayNanoType
- parse_
interval_ year_ month - Parse human-readable interval string to Arrow IntervalYearMonthType
- string_
to_ datetime - Accepts a string and parses it relative to the provided
timezone
- string_
to_ time_ nanoseconds - Accepts a string in ISO8601 standard format and some variants and converts it to nanoseconds since midnight.
- string_
to_ timestamp_ nanos - Accepts a string in RFC3339 / ISO8601 standard format and some variants and converts it to a nanosecond precision timestamp.
Type Aliases§
- Month
DayNano - A tuple representing (months, days, nanoseconds) in an interval