Skip to content

Commit

Permalink
#7485 was fixed by recent group by changes
Browse files Browse the repository at this point in the history
  • Loading branch information
njnes committed May 8, 2024
1 parent c3ce474 commit 1422b2b
Showing 1 changed file with 9 additions and 6 deletions.
15 changes: 9 additions & 6 deletions sql/test/BugTracker-2024/Tests/rel_groupby_cse-Bug-7485.test
Original file line number Diff line number Diff line change
Expand Up @@ -7,15 +7,18 @@ statement error 42000!SELECT: cannot use non GROUP BY column 'x' in query result
WITH x ( x ) AS ( SELECT 1 ) SELECT x FROM x GROUP BY x + 1
----

skipif knownfail
statement error 42000!SELECT: cannot use non GROUP BY column 'x' in query results without an aggregate function
query I nosort
WITH x ( x ) AS ( SELECT 1 ) SELECT x FROM x GROUP BY x + 1 , x
----
1

skipif knownfail
statement error 42000!SELECT: cannot use non GROUP BY column 'x' in query results without an aggregate function
query I nosort
WITH x ( x ) AS ( SELECT 1 ) SELECT ( x ) FROM x WHERE ( SELECT x FROM x GROUP BY x + 1 , x )
----
1

skipif knownfail
statement error 42000!SELECT: cannot use non GROUP BY column 'x' in query results without an aggregate function
query I nosort
SELECT ( WITH x ( x ) AS ( SELECT 1 ) SELECT ( x ) FROM x WHERE ( SELECT x FROM x GROUP BY x + 1 , x ) )
----
1

0 comments on commit 1422b2b

Please sign in to comment.