Skip to main content

text_number

Function text_number 

Source
fn text_number(
    file_field: &FieldRef,
    compat_field: Option<&FieldRef>,
    csv: bool,
) -> Option<TextNumber>
Expand description

Returns the type to parse the text of a file column into, if it is read as a string for that.

A csv file has no types of its own. When its numbers don’t all look like an Int64 or a Float64, as with a value above the Int64 range next to one in scientific notation, the column is inferred as a string. So with csv such a column is parsed in the same way. A json string is left to the cast.