You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
[BUG] JSQLParser 5.1 : SQL-99 : unnest(...) with ordinality #2218
The unnest function which can have an optional with ordinality qualifier, is an unsupported statement when the qualifier is supplied.
SQL Example:
select*from unnest(array[4,5,6]) with ordinality;
Software Information:
JSqlParser 5.1
Database (e. g. SQL-99 )
It is part of the SQL-99 spec, although this is parsed into an UnsupportedStatement, and once in an unsupported statement, the statement can't be parsed and tree walked using JSQLParser.
I would be happy to submit a PR, the changes to TableFunction.java would be simple enough, adding an optional String clause to it. Where I am less certain is how to change the JSqlParser.jjt file to modify the TableFunction part to take in potentially a multi token clause. Or should it be a case of declaring a withClause and only allowing a singular word to be present after WITH in a TableFunction (which again, I am less certain on how to achieve in the jjt file)
Activity
davyboyhayes commentedon Apr 7, 2025
I would be happy to submit a PR, the changes to
TableFunction.javawould be simple enough, adding an optionalString clauseto it. Where I am less certain is how to change theJSqlParser.jjtfile to modify the TableFunction part to take in potentially a multi token clause. Or should it be a case of declaring awithClauseand only allowing a singular word to be present after WITH in a TableFunction (which again, I am less certain on how to achieve in the jjt file)Add support for TableFunction [WITH OFFSET|ORDINALITY]
Add support for TableFunction [WITH OFFSET|ORDINALITY] (#2219)