Class DB2JsonTableFunction

All Implemented Interfaces:
SetReturningFunctionRenderer, SqmSetReturningFunctionDescriptor

public class DB2JsonTableFunction extends JsonTableFunction
DB2 json_table function. This implementation/emulation goes to great lengths to ensure Hibernate ORM can provide the same json_table() experience that other dialects provide also on DB2. The most notable limitation of the DB2 function is that it doesn't support JSON arrays, so this emulation uses a series CTE called max_series with 10_000 rows to join each array element queried with json_query() at the respective index via json_table() separately. Another notable limitation of the DB2 function is that it doesn't support nested column paths, which requires emulation by joining each nesting with a separate json_table().