[MDEV-16880] Provide checksum aggregate functions, and partition-level checksums Created: 2018-08-02 Updated: 2023-08-01 |
|
| Status: | Open |
| Project: | MariaDB Server |
| Component/s: | Server |
| Fix Version/s: | None |
| Type: | Task | Priority: | Major |
| Reporter: | Eric Herman | Assignee: | Unassigned |
| Resolution: | Unresolved | Votes: | 0 |
| Labels: | None | ||
| Issue Links: |
|
||||||||||||
| Description |
|
Today, we only have the option to checksum a table:
However, it would be useful to be able to specify a subset of data, especially a single partition. Additionally, it would be best if it would be possible to get a checksum of data in an un-partitioned table, then copy this data into a partitioned table, aggregate the checksum values of each partition, and get the same value as un-partitioned table. ( Relates to: MDEV-16249 ) |
| Comments |
| Comment by Eric Herman [ 2018-08-02 ] | |||
|
I can imagine a new syntax something like extending the MD5 aggregate functions to take multiple columns might be useful. I can imagine adding syntax like
might be useful for non-partitioned tables, as it would allow for parallel checksum calculation, even in the non-partitioned case. Already there exists some partition CHECKSUM data in information_schema. https://mariadb.com/kb/en/library/information-schema-partitions-table/ | |||
| Comment by Sergei Golubchik [ 2018-08-08 ] | |||
|
There's already a syntax for a table partition, like (copied from tests):
So syntax-wise it would be quite logical to use that for CHECKSUM TABLE. |