Join GitHub today
GitHub is home to over 28 million developers working together to host and review code, manage projects, and build software together.Sign up
Disable the rewrite of the order by expressions under certain conditions #732
This issue is related to the google groups discussion here: https://groups.google.com/forum/#!topic/querydsl/9GMQp5FZ5Lk
Timo suggests disabling the rewrite of the order by expressions under certain conditions. Having the same expressions in other parts of the query could be a good start.
Original description of the problem:
Here's a pared down example to illustrate the issue.
In 3.3.2, the generated query is:
"ORA-00979: not a GROUP BY expression" occurs because the order by uses columns not in the group by. If I remove the order by, the query works fine. If I change the query to the 3.2.4 behavior, it also works: