Skip to main content

fits

Function fits 

Source
pub fn fits(from: &DataType, to: &DataType) -> bool
Expand description

Whether a file storing from can be read into a column of to without loss. Mirrors the cast policy [crate::cloud_hive::lenient_scan] gives Polars; a type that does not fit would fail the scan, so the column is left unread in that file instead.