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

DISTINCT does not return compressed columns

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

          RPCarter53 Royston P Carter created issue -
          alice Alice Sherepa made changes -
          Field Original Value New Value
          Affects Version/s 10.3 [ 22126 ]
          Affects Version/s 10.4 [ 22408 ]
          Affects Version/s 10.5 [ 23123 ]
          alice Alice Sherepa made changes -
          Fix Version/s 10.3 [ 22126 ]
          Fix Version/s 10.4 [ 22408 ]
          Fix Version/s 10.5 [ 23123 ]
          alice Alice Sherepa made changes -
          Assignee Sergei Petrunia [ psergey ]
          alice Alice Sherepa made changes -
          Status Open [ 1 ] Confirmed [ 10101 ]
          serg Sergei Golubchik made changes -
          Workflow MariaDB v3 [ 115708 ] MariaDB v4 [ 144313 ]
          julien.fritsch Julien Fritsch made changes -
          Fix Version/s 10.3 [ 22126 ]
          julien.fritsch Julien Fritsch made changes -
          Fix Version/s 10.4 [ 22408 ]

          People

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

            Dates

              Created:
              Updated:

              Git Integration

                Error rendering 'com.xiplink.jira.git.jira_git_plugin:git-issue-webpanel'. Please contact your Jira administrators.