Repository navigation
TODO-6441 MVI non-optimizer fixes - #6207
Open
mariadb-YuchenPei wants to merge 5 commits into
Open
mariadb-YuchenPei wants to merge 5 commits into
mariadb-YuchenPei wants to merge 5 commits into
Conversation
|
|
mariadb-YuchenPei
force-pushed
the
bb-serg-MDEV-25848-mvi
branch
3 times, most recently
from
November 26, 2026 02:36
2a5d904 to
e9a56d7
Compare
…range_seq_next This fixes msan failures exposed in main.opt_trace_index_merge testcases introduced by MDEV-25848 commit 54ea632
mariadb-YuchenPei
force-pushed
the
bb-main-todo-6441
branch
from
November 26, 2026 02:40
377166f to
123cf58
Compare
Before this, keyinfo_array has the same size as table->s->keys, which does not count ARRAY key. This causes out of bounds failure when accessing keyinfo_array.
mariadb-YuchenPei
force-pushed
the
bb-main-todo-6441
branch
4 times, most recently
from
November 26, 2026 07:17
76ed630 to
533d69a
Compare
Contributor
Author
|
@vuvova: finding #2 of #5841 (comment) has been fixed by or commits of the same message if the hash changes. Would you like to take a look? |
…s MVI IGNORE INDEX, USE/FORCE INDEX of other keys, IGNORED, and NO_RANGE_OPTIMIZATION now work
mariadb-YuchenPei
force-pushed
the
bb-main-todo-6441
branch
from
November 26, 2026 07:25
533d69a to
37c9587
Compare
update_needed is computed by checking that the hlindex key is in write_set. When done before mark_columns_needed_for_insert() marked default and virtual columns, the stale write_set could result in false negative: update is needed but update_needed is false. This patch fixes that and closes finding #4.
mariadb-YuchenPei
force-pushed
the
bb-main-todo-6441
branch
5 times, most recently
from
December 1, 2026 04:09
68997b1 to
b7194d7
Compare
MEMBER OF is JSON_CONTAINS(js, JSON_QUOTE(value)), which treats a scalar document as a 1-element array (boxing) and looks into nested arrays (flattening). The array index only indexed the top-level elements of a top-level array, and returned an ignorable error otherwise. This caused INSERT IGNORE to store a row that MEMBER OF matches but the index does not. In this patch we index every scalar of the document at any array depth, a scalar document as one entry, and skip objects. SQL NULL is not an error any more either: it has no entries. This closes finding #5.
mariadb-YuchenPei
force-pushed
the
bb-main-todo-6441
branch
from
December 1, 2026 04:13
b7194d7 to
d792933
Compare
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
No description provided.