Fakhri Nasibov (
https://hibernate.atlassian.net/secure/ViewProfile.jspa?accountId=5afdbe0...
) *created* an issue
Hibernate ORM (
https://hibernate.atlassian.net/browse/HHH?atlOrigin=eyJpIjoiZDNmMDE2NDM1...
) / Bug (
https://hibernate.atlassian.net/browse/HHH-17018?atlOrigin=eyJpIjoiZDNmMD...
) HHH-17018 (
https://hibernate.atlassian.net/browse/HHH-17018?atlOrigin=eyJpIjoiZDNmMD...
) IllegalAurgumentException when trying to run window function HQL (
https://hibernate.atlassian.net/browse/HHH-17018?atlOrigin=eyJpIjoiZDNmMD...
)
Issue Type: Bug Affects Versions: 6.2.7 Assignee: Unassigned Components: hibernate-core,
query-hql Created: 31/Jul/2023 14:17 PM Priority: Major Reporter: Fakhri Nasibov (
https://hibernate.atlassian.net/secure/ViewProfile.jspa?accountId=5afdbe0...
)
Query
select contact from (select numeredContact, row_number() over(partition by
numeredContact.name, numeredContact.phone) as num from Contact numeredContact ) as contact
where contact.num = 1
throws
Caused by: java.lang.IllegalArgumentException: Component at index 0 has no alias, but
alias is required
Found this bug while usin spring data with spring boot 3 which using hibernate-core 6+
version.
I prepared reproducer project (
https://github.com/fnasibov/WindiwedFunctionIssue ) with
hibernate(without spring) and with spring boot 3 here (
https://github.com/fnasibov/exploringStarters ).
Same query but native work well,
(
https://hibernate.atlassian.net/browse/HHH-17018#add-comment?atlOrigin=ey...
) Add Comment (
https://hibernate.atlassian.net/browse/HHH-17018#add-comment?atlOrigin=ey...
)
Get Jira notifications on your phone! Download the Jira Cloud app for Android (
https://play.google.com/store/apps/details?id=com.atlassian.android.jira....
) or iOS (
https://itunes.apple.com/app/apple-store/id1006972087?pt=696495&ct=Em...
) This message was sent by Atlassian Jira (v1001.0.0-SNAPSHOT#100233- sha1:b4f309b )