GeezerVisonThe World Wide Web, restored to 800 pixels of glory. |
| Home|About|Gaming cabinet|Archives|How it works|Starter sites |
GeezerVison is showing github.com — Unable to parse ORACLE LISTAGG-Function in combination with OVER-Clause · Issue #1652 · JSQLParser/JSqlParser Closed Labels DescriptionHi The parser (version 4.5) reports while parsing the following statement (reduced to the minimum with sample data included): -- not parseable WITH CTE_DUMMY_DATA(COL_TO_AGG, PART_COL) AS ( SELECT 'Foo', 1 FROM DUAL UNION SELECT 'Bar', 2 FROM DUAL UNION SELECT 'Baz', 1 FROM DUAL ) SELECT LISTAGG (d.COL_TO_AGG, ' / ') WITHIN GROUP (ORDER BY d.COL_TO_AGG) OVER (PARTITION BY d.PART_COL) AS MY_LISTAGG FROM cte_dummy_data d; This is fine ORACLE-Sql (see https://docs.oracle.com/cd/E11882_01/server.112/e41084/functions089.htm#SQLRF30030) and returns something like I was able to reduce the Problem to the OVER-Clause, as the following (semantically different) snippet is parseable: -- parseable WITH CTE_DUMMY_DATA(COL_TO_AGG, PART_COL) AS ( SELECT 'Foo', 1 FROM DUAL UNION SELECT 'Bar', 2 FROM DUAL UNION SELECT 'Baz', 1 FROM DUAL ) SELECT LISTAGG (d.COL_TO_AGG, ' / ') WITHIN GROUP (ORDER BY d.COL_TO_AGG) AS MY_LISTAGG FROM cte_dummy_data d; Fix/Workaround would be appreciated. Activity
MetadataMetadataAssigneesLabelsTypeProjectsMilestoneRelationshipsDevelopmentIssue actions |
| You are visitor 01402520 — GeezerVison does not store the pages you look up. Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required. |