Skip to content

Commit a521310

Browse files
include name of window function in error for find_window_fn
1 parent 8ca3469 commit a521310

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/functions.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -651,7 +651,7 @@ fn find_window_fn(name: &str, ctx: Option<PySessionContext>) -> PyResult<WindowF
651651
});
652652
}
653653

654-
maybe_fn.ok_or(DataFusionError::Common("window function not found".to_string()).into())
654+
maybe_fn.ok_or(DataFusionError::Common(format!("window function `{name}` not found")).into())
655655
}
656656

657657
/// Creates a new Window function expression

0 commit comments

Comments
 (0)