fn to_parquet_file(p: data_types::ParquetFile) -> ParquetFile {
    ParquetFile {
        id: p.id.get(),
        sequencer_id: p.sequencer_id.get(),
        namespace_id: p.namespace_id.get(),
        table_id: p.table_id.get(),
        partition_id: p.partition_id.get(),
        object_store_id: p.object_store_id.to_string(),
        min_sequence_number: p.min_sequence_number.get(),
        max_sequence_number: p.max_sequence_number.get(),
        min_time: p.min_time.get(),
        max_time: p.max_time.get(),
        to_delete: p.to_delete.map(|t| t.get()).unwrap_or(0),
        file_size_bytes: p.file_size_bytes,
        row_count: p.row_count,
        compaction_level: p.compaction_level as i32,
        created_at: p.created_at.get(),
    }
}
// converts the catalog ParquetFile to protobuf
converts the catalog ParquetFile to protobuf
converts the catalog ParquetFile to protobuf
fn to_parquet_file(p: data_types::ParquetFile) -> ParquetFile {
    ParquetFile {
        id: p.id.get(),
        sequencer_id: p.sequencer_id.get(),
        namespace_id: p.namespace_id.get(),
        table_id: p.table_id.get(),
        partition_id: p.partition_id.get(),
        object_store_id: p.object_store_id.to_string(),
        min_sequence_number: p.min_sequence_number.get(),
        max_sequence_number: p.max_sequence_number.get(),
        min_time: p.min_time.get(),
        max_time: p.max_time.get(),
        to_delete: p.to_delete.map(|t| t.get()).unwrap_or(0),
        file_size_bytes: p.file_size_bytes,
        row_count: p.row_count,
        compaction_level: p.compaction_level as i32,
        created_at: p.created_at.get(),
    }
}
fn to_parquet_file ( p : data_types :: ParquetFile ) -> ParquetFile { ParquetFile { id : p . id . get ( ) , sequencer_id : p . sequencer_id . get ( ) , namespace_id : p . namespace_id . get ( ) , table_id : p . table_id . get ( ) , partition_id : p . partition_id . get ( ) , object_store_id : p . object_store_id . to_string ( ) , min_sequence_number : p . min_sequence_number . get ( ) , max_sequence_number : p . max_sequence_number . get ( ) , min_time : p . min_time . get ( ) , max_time : p . max_time . get ( ) , to_delete : p . to_delete . map ( | t | t . get ( ) ) . unwrap_or ( 0 ) , file_size_bytes : p . file_size_bytes , row_count : p . row_count , compaction_level : p . compaction_level as i32 , created_at : p . created_at . get ( ) , } }
converts the catalog ParquetFile to protobuf
converts the catalog ParquetFile to protobuf
p
data_types::ParquetFile
p
data_types::ParquetFile