MDEV-39525 [wip] Add supertype checks to vcol index substitution in W… - #5442
MDEV-39525 [wip] Add supertype checks to vcol index substitution in W…#5442mariadb-YuchenPei wants to merge 1 commit into
Conversation
…HERE - check if both the vcol expr and vcol field are supertypes to the RHS - check if vcol field is a supertype to vcol expr If either check returns true, then the substitution is safe. Skip the checks for IS NULL / IS NOT NULL. TODO: Does not yet work for the JSON_EXTRACT/JSON_VALUE vcol examples in vcol_sargable because capacity_limit_is_in_characters returns different values for varchar and blob/text
|
Caution The consumer version of Gemini Code Assist on GitHub has been sunset. All code review activity has officially ceased. |
|
|
|
claude: Code Review: MDEV-39525
|
…HERE
If either check returns true, then the substitution is safe.
Skip the checks for IS NULL / IS NOT NULL.
TODO: Does not yet work for the JSON_EXTRACT/JSON_VALUE vcol examples in vcol_sargable because capacity_limit_is_in_characters returns different values for varchar and blob/text