From 98b3ab7afc6611b5820c119073a34c8c607fe25f Mon Sep 17 00:00:00 2001 From: zhong Date: Wed, 17 Jan 2024 07:21:46 +0000 Subject: [PATCH] add test --- datafusion/sqllogictest/test_files/group_by.slt | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/datafusion/sqllogictest/test_files/group_by.slt b/datafusion/sqllogictest/test_files/group_by.slt index 79e6a9357b40..c75929049c18 100644 --- a/datafusion/sqllogictest/test_files/group_by.slt +++ b/datafusion/sqllogictest/test_files/group_by.slt @@ -4853,4 +4853,9 @@ statement error DataFusion error: This feature is not implemented: Conflicting o SELECT a, b, NTH_VALUE(c, 2 ORDER BY c ASC), NTH_VALUE(c, 3 ORDER BY d ASC) FROM multiple_ordered_table GROUP BY a, b -ORDER BY a, b; \ No newline at end of file +ORDER BY a, b; + +query II +SELECT a + 1 AS d, a + 1 + b AS c FROM (SELECT 1 AS a, 2 AS b) GROUP BY a + 1, a + 1 + b; +---- +2 4