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
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.
Failing SQL Feature:
with ordinalityqualifier, is an unsupported statement when the qualifier is supplied.SQL Example:
Software Information:
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.https://www.iso.org/obp/ui/en/#iso:std:iso-iec:19075:-8:ed-1:v1:en (5.6.2)
http://jsqlformatter.manticore-projects.com/jsqlformatter/demo.html?args=-c%20M4UwNiDGAuAEBUsBmAnA9gW1gVwHa5GGgAoBDFFUgTwG0AWAGgFYGA2AXQEpYB3AS2gALWGhQATPrlJgBVANxA$$
This is present in a number of Databases:
H2 - https://www.h2database.com/html/functions.html#unnest
HSQLDB - https://hsqldb.org/doc/guide/sqlgeneral-chapt.html (grep for unnest)
Postgres - https://www.postgresql.org/docs/current/queries-table-expressions.html#QUERIES-TABLEFUNCTIONS although this declares the
with ordinalityto be a property of a Table Function, which probably makes more sense in a general senseDB2 - https://www.ibm.com/docs/en/db2/11.1.0?topic=functions-unnest
GoogleSQL - https://cloud.google.com/bigquery/docs/arrays#flattening_arrays (although they have
with offset)SQL Server doesn't support this - https://learn.microsoft.com/en-us/openspecs/sql_standards/ms-tsqliso02/698d73c4-1410-4a75-affe-cef7323bb0d8