From a2c8d673bd6a4691cf3bd3379faf4df9ee3dcd0d Mon Sep 17 00:00:00 2001 From: Liang-Chi Hsieh Date: Tue, 5 Dec 2023 14:24:03 -0800 Subject: [PATCH] Update datafusion/sql/src/expr/function.rs Co-authored-by: Andrew Lamb --- datafusion/sql/src/expr/function.rs | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/datafusion/sql/src/expr/function.rs b/datafusion/sql/src/expr/function.rs index 322af9098ae9..1e35bd190c76 100644 --- a/datafusion/sql/src/expr/function.rs +++ b/datafusion/sql/src/expr/function.rs @@ -96,7 +96,8 @@ impl<'a, S: ContextProvider> SqlToRel<'a, S> { &window.order_by, schema, planner_context, - false, + // Numeric literals in window function ORDER BY are treated as constants + false, )?; let window_frame = window .window_frame