Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[BUG] JSQLParser 4.9 : Failed to parse listagg with "on overflow truncate" #2003

Open
fourhundredfortyfour opened this issue May 8, 2024 · 2 comments

Comments

@fourhundredfortyfour
Copy link

String sql = "select LISTAGG(field, ',' on overflow truncate '...') from dual";
PlainSelect plainSelect = (PlainSelect) CCJSqlParserUtil.parse(sql);

fails with

net.sf.jsqlparser.parser.ParseException: Encountered unexpected token: "(" "("
at line 1, column 15.

Was expecting one of:

"."
"::"
"["
"^"
<EOF>
<ST_SEMICOLON>

Software Information:

  • JSqlParser 4.9
  • Oracle
@manticore-projects
Copy link
Contributor

Greetings.

The ON OVERFLOW clause is not supported yet.
You would need to provide or sponsor an implementation if this was urgent.

@fourhundredfortyfour
Copy link
Author

Got it,
It's not urgent, wanted to let you know about this topic.
Maybe, maybe, I'll dig into the code. :-)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants