You are an expert in writing code in many different languages. Your goal is to perform code completion for the following code, keeping in mind the rest of the code and the file meta data.
    Metadata details:
    filename: rw_hummock_compact_task_assignment.rs
    path of file: ./repos/risingwave/src/frontend/src/catalog/system_catalog/rw_catalog
    
    the code of the file until where you have to start completion: // Copyright 2024 RisingWave Labs
//
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance with the License.
// You may obtain a copy of the License at
//
//     http://www.apache.org/licenses/LICENSE-2.0
//
// Unless required by applicable law or agreed to in w
    
async fn read(reader: &SysCatalogReaderImpl) -> Result<Vec<RwHummockCompactTaskAssignment>> {
    // The naming of compact_task_assignment is due to versioning; now compact_task_assignment only records the state of the compact task
    let compact_task_assignments = reader.meta_client.list_compact_task_assignment().await?;

    let mut rows = vec![];
    for compact_task_assignment in compact_task_assignments {
        let compact_task = compact_task_assignment.compact_task.unwrap();

        let select_level = compact_task.input_ssts[0].level_idx;

        rows.push(RwHummockCompactTaskAssignment {
            compaction_group_id: compact_task.compaction_group_id as _,
            task_id: compact_task.task_id as _,
            select_level: select_level as _,
            target_level: compact_task.target_level as _,
            task_type: compact_task.task_type as _,
            task_status: compact_task.task_status as _,
            watermark: compact_task.watermark as _,
            base_level: compact_task.base_level as _,
            gc_delete_keys: compact_task.gc_delete_keys as _,
            target_file_size: compact_task.target_file_size as _,
            target_sub_level_id: compact_task.target_sub_level_id as _,
            compression_algorithm: compact_task.compression_algorithm as _,
            table_ids: json!(compact_task.existing_table_ids).into(),
        });
    }

    Ok(rows)
}