[MDEV-20791] In table partitioned by INET6 all values go into the same partition Created: 2019-10-09 Updated: 2020-06-08 |
|
| Status: | Open |
| Project: | MariaDB Server |
| Component/s: | Data types, Partitioning |
| Affects Version/s: | 10.5 |
| Fix Version/s: | 10.5 |
| Type: | Bug | Priority: | Minor |
| Reporter: | Elena Stepanova | Assignee: | Alexander Barkov |
| Resolution: | Unresolved | Votes: | 0 |
| Labels: | None | ||
| Issue Links: |
|
||||||||||||||||||||
| Description |
|
Compare with binary column:
|
| Comments |
| Comment by Alexander Barkov [ 2019-10-10 ] | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
|
This BINARY test (with data equivalent to the above INET6 test) demonstrates that BINARY has the same problem:
Passing different values demonstrates it does distribute between partitions:
| ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| Comment by Alexander Barkov [ 2019-10-10 ] | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
|
The problem seems to reside in this piece of the code:
It works badly on binary data. Changing INET6 to use a different hash algorithm, say crc32, will need changes in:
|