Skip to content

MDEV-40168 wip - #5620

Draft
mariadb-YuchenPei wants to merge 1 commit into
mainfrom
bb-main-mdev-40168
Draft

MDEV-40168 wip#5620
mariadb-YuchenPei wants to merge 1 commit into
mainfrom
bb-main-mdev-40168

Conversation

@mariadb-YuchenPei

Copy link
Copy Markdown
Contributor

TODOs on top of those in the patch diff:

  • EXPLAIN output should not say fulltext
  • check type match to avoid false negative / positive bugs in mysql
  • transcode the value into the index charset in mvi_encode_key

@CLAassistant

Copy link
Copy Markdown

CLA assistant check
Thank you for your submission! We really appreciate it. Like many open source projects, we ask that you sign our Contributor License Agreement before we can accept your contribution.
You have signed the CLA already but the status is still pending? Let us recheck it.

@mariadb-YuchenPei
mariadb-YuchenPei force-pushed the bb-main-mdev-40168 branch 2 times, most recently from 8a9c029 to 21cf57e Compare September 1, 2026 06:51
@spetrunia
spetrunia self-requested a review September 1, 2026 09:05
t1 CREATE TABLE `t1` (
`c` int(11) DEFAULT NULL,
`j` longtext CHARACTER SET utf8mb4 COLLATE utf8mb4_bin DEFAULT NULL CHECK (json_valid(`j`))
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_uca1400_ai_ci

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

So, the index is now shown in SHOW CREATE TABLE ?

show index from t1;
Table Non_unique Key_name Seq_in_index Column_name Collation Cardinality Sub_part Packed Null Index_type Comment Index_comment Ignored
t1 1 invisible1 1 invisible1 A 0 NULL NULL YES BTREE NO
t1 1 idx 1 DB_MVI_1 NULL NULL NULL NULL YES FULLTEXT NO

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Do I miss something or the table has TWO indexes? one BTREE and one FULLTEXT?

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

It's a side effect of the debug_dbug:

  DBUG_EXECUTE_IF("test_invisible_index",{
          LEX_CSTRING temp= "invisible1"_Lex_ident_column;
          mysql_add_invisible_index(thd, &alter_info->key_list
                  , &temp, Key::MULTIPLE);
          });

TODOs on top of those in the patch diff:

- EXPLAIN output should not say fulltext
- check type match to avoid false negative / positive bugs in mysql
- transcode the value into the index charset in mvi_encode_key
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Development

Successfully merging this pull request may close these issues.

4 participants