[MDEV-16393] Better document how RANGE COLUMNS works Created: 2018-06-04 Updated: 2023-12-15 |
|
| Status: | Open |
| Project: | MariaDB Server |
| Component/s: | Documentation - Support, Partitioning |
| Fix Version/s: | N/A |
| Type: | Task | Priority: | Major |
| Reporter: | Geoff Montee (Inactive) | Assignee: | Joe Cotellese |
| Resolution: | Unresolved | Votes: | 0 |
| Labels: | None | ||
| Issue Links: |
|
||||||||||||
| Description |
|
This is dependent on The current documentation page doesn't completely explain how RANGE COLUMNS partitioning works: https://mariadb.com/kb/en/library/range-columns-and-list-columns-partitioning-types/ For example, let's say that we have the following table:
Some users might expect the third row to go into either p0, p1 or p3, depending on how they think that comparison operators for ROW operators work. The correct answer is that it goes into p0:
We can test out a comparison of the row against the partition's range in the following way:
This is because, as the MySQL documentation states, the less than comparison operator works the following way on ROW objects:
https://dev.mysql.com/doc/refman/5.7/en/comparison-operators.html#operator_less-than So this is equivalent to the following:
|
| Comments |
| Comment by Jacob Moorman (Inactive) [ 2019-04-12 ] |
|
https://mariadb.com/kb/en/library/range-columns-and-list-columns-partitioning-types/#comparisons requires a refactor and examples https://mariadb.com/kb/en/library/range-columns-and-list-columns-partitioning-types/#syntax requires examples |
| Comment by Julien Fritsch [ 2021-09-22 ] |
|
jacob.moorman from our discussion, I decided to reassign Kenneth's ticket to you? |