[MDEV-15976] Partition by SYSTEM_TIME: rotation by time starts from a wrong partition Created: 2018-04-22 Updated: 2018-04-22 Resolved: 2018-04-22 |
|
| Status: | Closed |
| Project: | MariaDB Server |
| Component/s: | Documentation, Partitioning, Versioned Tables |
| Affects Version/s: | 10.3 |
| Fix Version/s: | N/A |
| Type: | Bug | Priority: | Major |
| Reporter: | Elena Stepanova | Assignee: | Sergei Golubchik |
| Resolution: | Fixed | Votes: | 0 |
| Labels: | None | ||
| Description |
|
As of the moment of writing the report, the documentation says:
That is, history should first be written to the first historical partition, and after that the interval applies. It makes sense, because the table can be created long before the history actually starts appearing, so it wouldn't make sense to waste first partitions. Instead, it seems that the interval is counted from partition creation time. The test below demonstrates it.
If it is indeed meant to work this way, please adjust documentation. |
| Comments |
| Comment by Sergei Golubchik [ 2018-04-22 ] |
|
This is intentional, the time starts counting from the table creation time. Note that you can select from INFORMATION_SCHEMA.PARTITIONS to see the rotation time for each history partition. |
| Comment by Sergei Golubchik [ 2018-04-22 ] |
|
I've clarified it in the manual |