Skip to main content

validate_region_partition_bounds

Function validate_region_partition_bounds 

Source
pub fn validate_region_partition_bounds(
    changed_columns: &HashMap<String, (ConcreteDataType, ConcreteDataType)>,
    region_routes: &[RegionRoute],
) -> Result<()>
Expand description

Validates that the persisted partition bounds of every region are still representable with the types of changed_columns. Returns an error naming the first offending region without modifying anything.

Public so that round-trip tests in the partition crate can run real serialized partition expressions through the same mirror used here.