Details
-
Bug
-
Status: Resolved
-
Major
-
Resolution: Fixed
-
None
-
None
Description
See the title. The following query is an example of this bug.
SELECT l_returnflag, l_linestatus FROM ( SELECT * FROM lineitem WHERE l_returnflag = 'O' UNION ALL SELECT * FROM lineitem WHERE l_returnflag = 'R' ) T GROUP BY l_returnflag, l_linestatus ORDER BY l_returnflag, l_linestatus
This patch adds an unit test to reproduce this case and includes the bug fix.