fn check_partition_range_monotonicity( ranges: &[Vec<PartitionRange>], descending: bool, ) -> Result<()>