feat: refactor merge file on compactor (#4971)

This commit is contained in:
Hengfei Yang
2024-11-07 17:30:10 +08:00
committed by GitHub
parent 1179109e2e
commit df0a4a79ae
33 changed files with 1070 additions and 1280 deletions
+3 -3
View File
@@ -132,7 +132,7 @@ pub async fn cli() -> Result<bool, anyhow::Error> {
match command.get_one::<String>("path") {
Some(path) => {
set_permission(path, 0o777)?;
println!("init dir {} succeeded", path);
println!("init dir {} successfully", path);
}
None => {
return Err(anyhow::anyhow!("please set data path"));
@@ -263,7 +263,7 @@ pub async fn cli() -> Result<bool, anyhow::Error> {
let file = command.get_one::<String>("file").unwrap();
match file_list::delete_parquet_file(file, true).await {
Ok(_) => {
println!("delete parquet file {} succeeded", file);
println!("delete parquet file {} successfully", file);
}
Err(e) => {
println!("delete parquet file {} failed, error: {}", file, e);
@@ -291,6 +291,6 @@ pub async fn cli() -> Result<bool, anyhow::Error> {
log::error!("waiting for db close failed, error: {}", e);
}
println!("command {name} execute succeeded");
println!("command {name} execute successfully");
Ok(true)
}