Skip to content

HHH-19704 listagg on overflow #10759

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
wants to merge 9 commits into
base: main
Choose a base branch
from

Conversation

michaelfranz
Copy link

@michaelfranz michaelfranz commented Aug 14, 2025

This PR fixes the issue addressed in HHH-19704 with enhancements to Template.java plus its corresponding TemplateTest.
@gavinking 's last enhancement of this class addressed a problem with FETCH FIRST/PREV. HHH-19704 is essentially the same technical problem applied to another subset of tokens, which may be keywords depending on context.

The Template class's increased complexity is an unfortunate side-effect of this enhancement. The goal was to solve the problem, not create a total re-write of something that evidently works. I have enhanced TemplateTest above and beyond that HHH-19704 actually calls for. These enhancements ensure the vast majority of Template's many branches are touched by the test.


By submitting this pull request, I confirm that my contribution is made under the terms of the Apache 2.0 license
and can be relicensed under the terms of the LGPL v2.1 license in the future at the maintainers' discretion.
For more information on licensing, please check here.


https://hibernate.atlassian.net/browse/HHH-19704

Copy link
Member

@gavinking gavinking left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I've left a couple of comments.

@hibernate-github-bot
Copy link

hibernate-github-bot bot commented Aug 15, 2025

Thanks for your pull request!

This pull request does not follow the contribution rules. Could you have a look?

❌ All commit messages should start with a JIRA issue key matching pattern HHH-\d+
    ↳ Offending commits: [39e9aec, fae7897]

› This message was automatically generated.

@michaelfranz michaelfranz force-pushed the HHH-19704-listagg-on-overflow branch from 5d6e123 to aa6fb4d Compare August 16, 2025 06:22
Mike Mannion added 3 commits August 17, 2025 10:58
…nto HHH-19704-listagg-on-overflow

# Conflicts:
#	hibernate-core/src/test/java/org/hibernate/orm/test/sql/TemplateTest.java
@michaelfranz
Copy link
Author

Can't help noticing this PR's associated ticket has been stuck on Waiting for review for some time:

https://hibernate.atlassian.net/browse/HHH-19704

The fix has been implemented in the same spirit as some very recently performed changes. It has undergone extensive testing. I know projects, which desperately need it. Fingers crossed we can see some movement soon.

@michaelfranz michaelfranz requested a review from gavinking August 21, 2025 15:23
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants