Uploaded image for project: 'Cayenne'
  1. Cayenne
  2. CAY-2810

Can't use custom operator expression with aggregate functions

    XMLWordPrintableJSON

Details

    Description

      Custom operators are not properly replaced by an alias in the group by section leading to the incorrect SQL.
      For example selecting Entity.DATA.operator("->>", String.class, "field").alias("field") results in the following SQL GROUP BY t0.data ->> ? field

      Note that functions are working fine in that case.

      Attachments

        Activity

          People

            ntimofeev Nikita Timofeev
            ntimofeev Nikita Timofeev
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: