Skip to content

Commit 595fe99

Browse files
author
Jiayu Liu
committed
add fmt
1 parent b9d943e commit 595fe99

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

datafusion/src/optimizer/utils.rs

+4-2
Original file line numberDiff line numberDiff line change
@@ -356,7 +356,8 @@ pub fn rewrite_expression(expr: &Expr, expressions: &[Expr]) -> Result<Expr> {
356356
})
357357
.ok_or_else(|| {
358358
DataFusionError::Internal(
359-
"Ill-formed window function expressions: unexpected marker".to_owned(),
359+
"Ill-formed window function expressions: unexpected marker"
360+
.to_owned(),
360361
)
361362
})?;
362363

@@ -374,7 +375,8 @@ pub fn rewrite_expression(expr: &Expr, expressions: &[Expr]) -> Result<Expr> {
374375

375376
if partition_index >= sort_index {
376377
Err(DataFusionError::Internal(
377-
"Ill-formed window function expressions: partition index too large".to_owned(),
378+
"Ill-formed window function expressions: partition index too large"
379+
.to_owned(),
378380
))
379381
} else {
380382
Ok(Expr::WindowFunction {

0 commit comments

Comments
 (0)