For example, running org.hibernate.jpa.test.graphs.queryhint.QueryHintEntityGraphTest#testLoadGraph multiple times, the generated SQL can be either of the following:
Notice that in the second statement, the following SELECT expressions are duplicated:
I see the same issue for #testLoadGraphOrderByWithImplicitJoin and #testLoadGraphWithRestriction.
The repeated expressions all involve the table, Company_markets, for Company#markets.
I believe repeated column aliases may cause problems with some dialects.