Visitar URL original
The ->> operation in postgresql does not work properly · Issue #1571 · JSQLParser/JSqlParser · GitHub
Skip to content

The ->> operation in postgresql does not work properly #1571

Description

@offSwitch

select visit_hour,json_array_elements(into_sex_json)->>'name',json_array_elements(into_sex_json)->>'value' from period_market

Activity

  1. wumpz commented on Jul 3, 2022

    @wumpz
    Member

    The problem here is that JSqlParser does only support:

    column ->> literal

    a function as a first "parameter" is not supported. Something you want to provide. PRs are welcome.

  2. yasu1209 commented on Mar 13, 2023

    @yasu1209

    I'm using the latest version 4.6 and this problem seems not solved yet.
    Would it be possible to be fixed in the future?

  3. manticore-projects commented on Mar 14, 2023

    @manticore-projects
    Contributor

    Unfortunately, allowing Function() is not possible as it will break performance reason. I think, this one is beyond any refactoring and tricks. A new and clean Grammar would be needed to achieve that.

  4. yasu1209 commented on Mar 14, 2023

    @yasu1209

    Unfortunately, allowing Function() is not possible as it will break performance reason. I think, this one is beyond any refactoring and tricks. A new and clean Grammar would be needed to achieve that.

    Thank you for your reply.
    I'll check my code to see if it can be refactored.

  5. added a commit that references this issue on Mar 14, 2023
    029588f
  6. manticore-projects commented on Mar 14, 2023

    @manticore-projects
    Contributor

    PR #1745 allows Function() ->> Literal as long as the Function is simple (no nested expressions as parameters).

  7. added a commit that references this issue on Mar 21, 2023
    31ef1aa
  8. added a commit that references this issue on Apr 27, 2023
    a312dcd
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

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