GeezerVison is showing github.com — [BUG] "WITH" item using "GROUP BY" clause cannot be parsed · Issue #1774 · JSQLParser/JSqlParser
[BUG] "WITH" item using "GROUP BY" clause cannot be parsed #1774
Description
Failing SQL Feature:
- ParseException: Encountered unexpected token: "group" "GROUP"
- Example:
WITH item using GROUP BY (and optionally HAVING) clause(s) cannot be parsed
SQL Example:
with mytbl as (select owner, count(*) from all_tables group by owner)
select *
from mytbl
Software Information:
- JSqlParser version 4.60
- Oracle v19c
Activity
manticore-projects commented on Apr 27, 2023
csakhogy commented on Apr 28, 2023
Sorry, my fault, I over-simplified the sample SQL script. The bug appears when the statement has both GROUP BY and HAVING and one changes the order of them which is - somewhat in contrast to SQL standards - allowed in Oracle dialect.
To be closed.
manticore-projects commented on Apr 29, 2023
@todo: Implement Oracle's HAVING before GROUP BY .
added 2 commits that reference this issue
on Apr 29, 2023This issue will close once commit 4efb99f is merged into the 'master' branch.4efb99f This issue will close once commit 4b7f21c is merged into the 'master' branch.4b7f21c added a commit that references this issue
on Jun 15, 2023This issue will close once commit a815f5f is merged into the 'master' branch.a815f5f added a commit that references this issue
on Jun 27, 2023This issue will close once commit c79dfff is merged into the 'master' branch.c79dfff
Metadata
Metadata
Development
No branches or pull requestsIssue actions