Skip to content

Commit

Permalink
include name of window function in error for find_window_fn
Browse files Browse the repository at this point in the history
  • Loading branch information
Michael-J-Ward committed Jul 25, 2024
1 parent 8ca3469 commit a521310
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/functions.rs
Original file line number Diff line number Diff line change
Expand Up @@ -651,7 +651,7 @@ fn find_window_fn(name: &str, ctx: Option<PySessionContext>) -> PyResult<WindowF
});
}

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

/// Creates a new Window function expression
Expand Down

0 comments on commit a521310

Please sign in to comment.