Skip to content

Conversation

@yybmion
Copy link

@yybmion yybmion commented Dec 5, 2025

Implements array_reverse() and array_sort() HQL functions.

  • array_reverse(array) - Returns reversed array
  • array_sort(array [, descending [, nulls_first]]) - Returns sorted array
    • Default: ASC, NULLs last
    • Follows PostgreSQL 18 semantics

All database tests pass.


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-19826

Implement array_reverse() and array_sort() with PostgreSQL 18 semantics.
Supports PostgreSQL, H2, HSQLDB, Oracle, and CockroachDB with native functions or SQL emulation as appropriate.

Signed-off-by: Yoobin Yoon <yunyubin54@gmail.com>
@hibernate-github-bot
Copy link

hibernate-github-bot bot commented Dec 5, 2025

Thanks for your pull request!

This pull request appears to follow the contribution rules.

› This message was automatically generated.

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.

1 participant