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

ARRAY constructor doesn't work when used in COUNT DISTINCT

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Major
    • Resolution: Fixed
    • None
    • 4.4.0, 4.5.0
    • None
    • 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

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

              Dates

                Created:
                Updated:
                Resolved: