Skip to content

JSQLParser 5.1: LambdaExpression parameters error #2195

Closed

Description

@style1002

The first parameter of the array_map function is (x, y, z) -> x + y, but it is incorrectly parsed as (x, y, z).

Statement statement = CCJSqlParserUtil.parse("select array_map((x,y,z) -> x + y, [1], [2], [4]) FROM table_name");

Software Information:

  • JSqlParser version 5.1

Activity

  1. manticore-projects commented on Jul 30, 2026

    @manticore-projects
    Contributor

    Indeed:

    SQL Text
     └─Statements: statement.select.PlainSelect
        ├─selectItems: statement.select.SelectItem
        │  └─expression: expression.Function
        │     └─ExpressionList: (x, y, z), [1], [2], [4]
        └─Table: table_name
    
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Labels

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions