fn convert_bucket_range( name: &str, buckets: Option<&Buckets>, downscale_shift: u32, ) -> Result<(Vec<BucketSpan>, Vec<i64>, u64), String>