Issue with CriteriaBuilder with nested functions

Description

I've registered a Postgres "jsonb_extract_path_text" function that can extract a specific Json key from JSONB column.
Now trying to apply count aggregate function on it, it produces QuerySyntaxException, seems that the function schema does not support braces

I've tested the same implementation with EclipseLink and it did not produce any errors, so I don't believe that this goes against JPA specifications.

Environment

None

Assignee

Unassigned

Reporter

Ramy Siha

Fix versions

None

backPortable

None

Suitable for new contributors

None

Requires Release Note

None

Pull Request

None

backportDecision

None

Components

Affects versions

Priority

Major
Configure