Skip to content

mysql-util: add PK-prefix partitioner tests - #38089

Draft
peterdukelarsen wants to merge 1 commit into
pl/mysql-pk-partitionerfrom
pl/mysql-pk-partitioner-tests
Draft

mysql-util: add PK-prefix partitioner tests#38089
peterdukelarsen wants to merge 1 commit into
pl/mysql-pk-partitionerfrom
pl/mysql-pk-partitioner-tests

Conversation

@peterdukelarsen

@peterdukelarsen peterdukelarsen commented Aug 6, 2026

Copy link
Copy Markdown
Contributor

Adds test coverage for the PK-prefix partitioner introduced in the PR below this one in the stack.

  • Mock-based unit tests (MockDb) covering the split walk: exclusive bounds, boundary assignment, phantom estimates, exact keys shorter than the probe depth, and single-prefix levels.
  • A live MySQL test that runs partition_table end to end against a real table (gated on MZ_TEST_MYSQL_URL).

🤖 Generated with Claude Code

@peterdukelarsen peterdukelarsen changed the title pl/mysql pk partitioner tests mysql-util: add PK-prefix partitioner tests Aug 6, 2026
@peterdukelarsen
peterdukelarsen force-pushed the pl/mysql-pk-partitioner-tests branch 3 times, most recently from 828adcf to 01eec8f Compare August 6, 2026 23:36
@peterdukelarsen
peterdukelarsen force-pushed the pl/mysql-pk-partitioner-tests branch from 01eec8f to ae6b94f Compare August 7, 2026 00:05
@peterdukelarsen
peterdukelarsen force-pushed the pl/mysql-pk-partitioner-tests branch from ae6b94f to 50c34bb Compare August 7, 2026 14:03
@peterdukelarsen
peterdukelarsen force-pushed the pl/mysql-pk-partitioner-tests branch 2 times, most recently from 10413fc to 2861b40 Compare August 8, 2026 00:08
Mock-database tests for bucket assignment, empty and small tables,
short exact keys among extending keys, and non-advancing prefixes,
plus a live MySQL test covering EXPLAIN estimates over prepared
statements, LIKE pattern semantics, and server-side validation that
boundaries are strictly increasing and partition the table.
@peterdukelarsen
peterdukelarsen force-pushed the pl/mysql-pk-partitioner-tests branch from 2861b40 to 511f5c1 Compare August 8, 2026 01:44
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant