Doing polymorphic queries with interfaces results in exception SqmRoot not yet resolved to TableGroup

Description

Query SELECT COUNT(xref) from org.hibernate.bugs.IEntityA xref

results in exception

java.lang.IllegalArgumentException: org.hibernate.query.sqm.InterpretationException: Error interpreting query [SqmRoot not yet resolved to TableGroup]; this may indicate a semantic (user query) problem or a bug in the parser [SqmRoot not yet resolved to TableGroup]

Activity

Show:

Oleksii Miroshnyk June 1, 2023 at 8:17 AM

link to forum topic

Oleksii Miroshnyk June 1, 2023 at 8:16 AM

link to pull request that demonstrates the issue

 

Please also try some more complex queries with interfaces, like subqueries, joins etc as they are also not working and not sure if it is because of the same root cause or not

Fixed

Details

Assignee

Reporter

Worked in

Components

Sprint

Fix versions

Affects versions

Priority

Created June 1, 2023 at 8:11 AM
Updated August 28, 2023 at 1:47 PM
Resolved June 27, 2023 at 7:22 AM