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 π
- IntervalAmount π
- IntervalParse Config 
- Config to parse interval strings
- TimestampParser π
- Helper for parsing RFC3339 timestamps
EnumsΒ§
- IntervalUnit 
- 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Β§
- 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 Nvalues 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 NaiveDateTimetoi64nanoseconds
Type AliasesΒ§
- MonthDayNano 
- A tuple representing (months, days, nanoseconds) in an interval