Uploaded image for project: 'Phoenix'
  1. Phoenix
  2. PHOENIX-2063

Row value constructor doesn't work when used in COUNT DISTINCT

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Major
    • Resolution: Fixed
    • None
    • 4.5.0, 4.4.1
    • None
    • None

    Description

      As a workaround for PHOENIX-2062, I tried the following query:

      SELECT COUNT(DISTINCT (a.col1, b.col2)) ...
      

      However, this always returns 1 as the COUNT DISTINCT which is wrong.

      Attachments

        1. PHOENIX-2063-addendum.patch
          5 kB
          James R. Taylor
        2. PHOENIX-2063-v2.patch
          5 kB
          Dumindu Buddhika
        3. PHOENIX-2063-v1.patch
          0.8 kB
          Dumindu Buddhika

        Issue Links

          Activity

            People

              Dumindux Dumindu Buddhika
              jamestaylor James R. Taylor
              Votes:
              0 Vote for this issue
              Watchers:
              5 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: