From 4bb799d307fd66872427bb55cc163181825c89fe Mon Sep 17 00:00:00 2001 From: Jacob Sherin Date: Tue, 17 Sep 2024 17:06:02 +0530 Subject: [PATCH] Add doc comment for helper method --- datafusion/expr/src/expr_schema.rs | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/datafusion/expr/src/expr_schema.rs b/datafusion/expr/src/expr_schema.rs index 252084444544..f40ac409dd43 100644 --- a/datafusion/expr/src/expr_schema.rs +++ b/datafusion/expr/src/expr_schema.rs @@ -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,