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

ARRAY 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.4.0, 4.5.0
    • Labels:
      None

      Description

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

      SELECT COUNT(DISTINCT ARRAY[a.col1, b.col2]) ...
      

      However, this always returns the full number of rows which is wrong.

        Attachments

        1. PHOENIX-2064-v4.patch
          10 kB
          Dumindu Buddhika
        2. PHOENIX-2064-v3.patch
          10 kB
          Dumindu Buddhika
        3. PHOENIX-2064-v2.patch
          10 kB
          Dumindu Buddhika
        4. PHOENIX-2064.patch
          7 kB
          Dumindu Buddhika

          Issue Links

            Activity

              People

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

                Dates

                • Created:
                  Updated:
                  Resolved: