Uploaded image for project: 'MariaDB Server'
  1. MariaDB Server
  2. MDEV-24201

DISTINCT does not return compressed columns

    XMLWordPrintable

    Details

      Description

      I have a simple query listed below which correctly returns 20 rows of data. If I add DISTINCT to the clause, it still returns 20 rows but the "purchase_token" field is empty for all rows. This field, "purchase_token" is a compressed field, the only one returned in this query.

      Working query:
      select uid, order_id, purchase_token from ud_registration where is_consumable = 1;

      Failing query:
      select DISTINCT uid, order_id, purchase_token from ud_registration where is_consumable = 1;

        Attachments

          Activity

            People

            Assignee:
            psergei Sergei Petrunia
            Reporter:
            RPCarter53 Royston P Carter
            Votes:
            0 Vote for this issue
            Watchers:
            4 Start watching this issue

              Dates

              Created:
              Updated:

                Git Integration