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

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

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: None
    • Fix Version/s: 4.5.0, 4.4.1
    • Labels:
      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-v2.patch
          5 kB
          Dumindu Buddhika
        2. PHOENIX-2063-v1.patch
          0.8 kB
          Dumindu Buddhika
        3. PHOENIX-2063-addendum.patch
          5 kB
          James Taylor

          Issue Links

            Activity

              People

              • Assignee:
                Dumindux Dumindu Buddhika
                Reporter:
                jamestaylor James Taylor
              • Votes:
                0 Vote for this issue
                Watchers:
                5 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved: