From f2afee2ca0a6b1d0679a8920b2d683e3a041bf9c Mon Sep 17 00:00:00 2001 From: Jiayu Liu Date: Sat, 5 Jun 2021 13:56:43 +0800 Subject: [PATCH] fix unit test --- datafusion/src/sql/planner.rs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/datafusion/src/sql/planner.rs b/datafusion/src/sql/planner.rs index 7fdee7d3f0ea6..cc5f36dbc44b6 100644 --- a/datafusion/src/sql/planner.rs +++ b/datafusion/src/sql/planner.rs @@ -2830,7 +2830,7 @@ mod tests { fn over_order_by_with_window_frame_single_end() { let sql = "SELECT order_id, MAX(qty) OVER (ORDER BY order_id RANGE 3 PRECEDING), MIN(qty) OVER (ORDER BY order_id DESC) from orders"; let expected = "\ - Projection: #order_id, #MAX(qty) GROUPS BETWEEN 3 PRECEDING AND CURRENT ROW, #MIN(qty)\ + Projection: #order_id, #MAX(qty) RANGE BETWEEN 3 PRECEDING AND CURRENT ROW, #MIN(qty)\ \n WindowAggr: windowExpr=[[MAX(#qty)]] partitionBy=[]\ \n Sort: #order_id ASC NULLS FIRST\ \n WindowAggr: windowExpr=[[MIN(#qty)]] partitionBy=[]\ @@ -2843,7 +2843,7 @@ mod tests { fn over_order_by_with_window_frame_single_end_groups() { let sql = "SELECT order_id, MAX(qty) OVER (ORDER BY order_id GROUPS 3 PRECEDING), MIN(qty) OVER (ORDER BY order_id DESC) from orders"; let expected = "\ - Projection: #order_id, #MAX(qty), #MIN(qty)\ + Projection: #order_id, #MAX(qty) GROUPS BETWEEN 3 PRECEDING AND CURRENT ROW, #MIN(qty)\ \n WindowAggr: windowExpr=[[MAX(#qty)]] partitionBy=[]\ \n Sort: #order_id ASC NULLS FIRST\ \n WindowAggr: windowExpr=[[MIN(#qty)]] partitionBy=[]\