[MDEV-24201] DISTINCT does not return compressed columns Created: 2020-11-12 Updated: 2023-04-27 |
|
| Status: | Confirmed |
| Project: | MariaDB Server |
| Component/s: | Data types, Storage Engine - InnoDB |
| Affects Version/s: | 10.3.17, 10.3, 10.4, 10.5 |
| Fix Version/s: | 10.4, 10.5 |
| Type: | Bug | Priority: | Major |
| Reporter: | Royston P Carter | Assignee: | Sergei Petrunia |
| Resolution: | Unresolved | Votes: | 0 |
| Labels: | DISTINCT, SELECT, compression | ||
| Environment: |
CentOS 8 |
||
| 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: Failing query: |
| Comments |
| Comment by Alice Sherepa [ 2020-11-12 ] | |||||||||||||||||||||||||
|
Could you please add the output of SHOW CREATE TABLE ud_registration; ? | |||||||||||||||||||||||||
| Comment by Royston P Carter [ 2020-11-12 ] | |||||||||||||||||||||||||
|
Alice, as requested.
Regards Roy | |||||||||||||||||||||||||
| Comment by Alice Sherepa [ 2020-11-12 ] | |||||||||||||||||||||||||
|
Thanks a lot! Now I could repeat it. (on 10.3-10.5)
|