Closed
Description
Just stumpled over this:
-- LISTAGG 3: fails to parse
SELECT LISTAGG(ID, ', ') WITHIN GROUP (ORDER BY ID) OVER (ORDER BY ID);
-- ARRAY_AGG 2: fails to deparse correctly
SELECT ARRAY_AGG(NAME ORDER BY ID) FILTER (WHERE NAME IS NOT NULL);
-- ARRAY_AGG 3 fails to deparse correctly
SELECT ARRAY_AGG(ID ORDER BY ID) OVER (ORDER BY ID);
net.sf.jsqlparser.JSQLParserException: Encountered unexpected token: "BY" "BY"
at line 1, column 65.
I will look into this and try to craft a PR when I find some time.