Skip to content

[BUG] JSQLParser Version : Trino : additional clauses in function parameters unsupported #2368

@davyboyhayes

Description

@davyboyhayes

Failing SQL Feature:

  • Trino uses functions which have paramaters with clauses ,'parameter' additional clauses) that isn't supported by JSQLParser

SQL Example:

select
    json_query(
        '{"customer" : 100, "region" : "AFRICA"},{"region" : "ASIA"},{"customer" : 300, "region" : "AFRICA", "comment" : null}',
        'strict $.keyvalue()' WITH ARRAY WRAPPER
    )
from
    tbl;

http://jsqlformatter.manticore-projects.com/jsqlformatter/demo.html?args=-c%20M4UwNiDGAuBQAEiBWwD2A7A+gRwK4gCcBPACgUQvgHIBvAIkl2GlQFtC74AueARgAZ+AGnh0CIAOYBLDJx50AggDEASgEkAwgroBfIfXHTZ3UQoDKa7XvqNmbDiYDMgkWMkz0c06s3bXkNnZ0aC90XDAwHSohckpqZgIpGHgAEgA6AGsQIgA3AEMwfBIASip4AHU1ABUACXgFFRUFAE0KpoAFdoBRFVji2AAzAjZY6AAjMABuIA$

Image

https://trino.io/docs/current/functions/json.html#json-query

Software Information:

  • JSqlParser 5.4-SNAPSHOT
  • Trino

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions