fn to_partition(p: data_types::Partition) -> Partition {
    Partition {
        id: p.id.get(),
        sequencer_id: p.sequencer_id.get(),
        key: p.partition_key,
        table_id: p.table_id.get(),
        sort_key: p.sort_key.unwrap_or_else(|| "".to_string()),
    }
}
// converts the catalog Partition to protobuf
converts the catalog Partition to protobuf
converts the catalog Partition to protobuf
fn to_partition(p: data_types::Partition) -> Partition {
    Partition {
        id: p.id.get(),
        sequencer_id: p.sequencer_id.get(),
        key: p.partition_key,
        table_id: p.table_id.get(),
        sort_key: p.sort_key.unwrap_or_else(|| "".to_string()),
    }
}
fn to_partition ( p : data_types :: Partition ) -> Partition { Partition { id : p . id . get ( ) , sequencer_id : p . sequencer_id . get ( ) , key : p . partition_key , table_id : p . table_id . get ( ) , sort_key : p . sort_key . unwrap_or_else ( | | " " . to_string ( ) ) , } }
converts the catalog Partition to protobuf
converts the catalog Partition to protobuf
p
data_types::Partition
p
data_types::Partition