Function datafusion::datasource::physical_plan::wrap_partition_type_in_dict
source ยท pub fn wrap_partition_type_in_dict(val_type: DataType) -> DataType
Expand description
Convert type to a type suitable for use as a ListingTable
partition column. Returns Dictionary(UInt16, val_type)
, which is
a reasonable trade off between a reasonable number of partition
values and space efficiency.
This use this to specify types for partition columns. However you MAY also choose not to dictionary-encode the data or to use a different dictionary type.
Use wrap_partition_value_in_dict
to wrap a ScalarValue
in the same say.