Expand description
Parser
implementations for converting strings to Arrow types
Used by the CSV and JSON readers to convert strings to Arrow types
Macros§
- parser_
primitive π
Structs§
- Interval π
- Interval
Amount π - Interval
Parse Config - Config to parse interval strings
- Timestamp
Parser π - Helper for parsing RFC3339 timestamps
Enums§
- Interval
Unit - Represents the units of an interval, with each variant corresponding to a bit in the intervalβs bitfield representation
Constants§
- EPOCH_
DAYS_ πFROM_ CE - Number of days between 0001-01-01 and 1970-01-01
- ERR_
NANOSECONDS_ πNOT_ SUPPORTED - Error message if nanosecond conversion request beyond supported interval
- INTERVAL_
PRECISION π - Chosen based on the number of decimal digits in 1 week in nanoseconds
- NANOS_
PER_ πHOUR - NANOS_
PER_ πMILLIS - NANOS_
PER_ πMINUTE - NANOS_
PER_ πSECOND
Traits§
- Parser
- Specialized parsing implementations to convert strings to Arrow types.
Functions§
- is_
some_ πand - This API is only stable since 1.70 so canβt use it when current MSRV is lower
- not_
interval_ πamount - test if a character is NOT part of an interval numeric amount
- parse_
date π - 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_
e_ πnotation - parse_
interval_ πcomponents - parse the string into a vector of interval components i.e. (amount, unit) tuples
- 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]
- parse_
nanos π - Parse nanoseconds from the first
N
values in digits, subtracting the offsetO
- split_
interval_ πcomponents - Split an interval into a vec of amounts and units.
- string_
to_ datetime - Accepts a string and parses it relative to the provided
timezone
- string_
to_ πtime - 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.
- to_
timestamp_ πnanos - Fallible conversion of
NaiveDateTime
toi64
nanoseconds
Type Aliases§
- Month
DayNano - A tuple representing (months, days, nanoseconds) in an interval