Skip to content

Commit f8ed9a6

Browse files
committed
clear
1 parent 16be1c5 commit f8ed9a6

File tree

1 file changed

+8
-5
lines changed

1 file changed

+8
-5
lines changed

rust/cubestore/cubestore/src/streaming/kafka_post_processing.rs

Lines changed: 8 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -505,26 +505,29 @@ impl KafkaPostProcessPlanner {
505505
if let Some(existing_name) = &column_name {
506506
if existing_name != &name {
507507
return Err(CubeError::user(
508-
"Scalar function can only use a single column".to_string(),
508+
"Scalar function can only use a single column"
509+
.to_string(),
509510
));
510511
}
511512
} else {
512513
column_name = Some(name);
513514
}
514515
}
515-
_ => {},
516+
_ => {}
516517
}
517518
}
518519
column_name.ok_or_else(|| {
519-
CubeError::user("Scalar function must contain at least one column".to_string())
520+
CubeError::user(
521+
"Scalar function must contain at least one column".to_string(),
522+
)
520523
})
521-
},
524+
}
522525
_ => {
523526
println!("unknown expr: {:?}", e);
524527
Err(CubeError::user(format!(
525528
"Unique key can't be an expression in kafka streaming queries"
526529
)))
527-
},
530+
}
528531
},
529532
_ => Err(CubeError::user(
530533
"All expressions must have aliases in kafka streaming queries".to_string(),

0 commit comments

Comments
 (0)