Join ordering logic wrongly pushes cross joins from subqueries to parent

Description

The logic in org.hibernate.hql.internal.ast.tree.FromClause#moveFromElementToEnd is faulty as it doesn't handle the fact that destination from elements could be on a different from clause level, leading to wrong SQL being generated.

Activity

Show:
Fixed

Details

Assignee

Reporter

Worked in

Components

Fix versions

Affects versions

Priority

Created December 18, 2020 at 3:17 PM
Updated January 15, 2021 at 1:32 PM
Resolved December 20, 2020 at 9:53 AM