Skip to content

Commit

Permalink
Add doc comment for helper method
Browse files Browse the repository at this point in the history
  • Loading branch information
jcsherin committed Sep 17, 2024
1 parent 0102334 commit 4bb799d
Showing 1 changed file with 9 additions and 0 deletions.
9 changes: 9 additions & 0 deletions datafusion/expr/src/expr_schema.rs
Original file line number Diff line number Diff line change
Expand Up @@ -456,6 +456,15 @@ impl ExprSchemable for Expr {
}

impl Expr {
/// Common method for window functions that applies type coercion
/// to all arguments of the window function to check if it matches
/// its signature.
///
/// If successful, this method returns the data type and
/// nullability of the window function's result.
///
/// Otherwise, returns an error if there's a type mismatch between
/// the window function's signature and the provided arguments.
fn data_type_and_nullable_with_window_function(
&self,
schema: &dyn ExprSchema,
Expand Down

0 comments on commit 4bb799d

Please sign in to comment.