Skip to content

MDEV-39276: Assertion 0 failed in json_find_path#5045

Open
grooverdan wants to merge 1 commit intoMariaDB:10.6from
grooverdan:MDEV-39276
Open

MDEV-39276: Assertion 0 failed in json_find_path#5045
grooverdan wants to merge 1 commit intoMariaDB:10.6from
grooverdan:MDEV-39276

Conversation

@grooverdan
Copy link
Copy Markdown
Member

This was resolved with MDEV-35548, however we add two additional test cases.

This was resolved with MDEV-35548, however we add
two additional test cases.
@grooverdan grooverdan added the MariaDB Foundation Pull requests created by MariaDB Foundation label May 6, 2026
Copy link
Copy Markdown

@gemini-code-assist gemini-code-assist Bot left a comment

Choose a reason for hiding this comment

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

Code Review

This pull request adds regression test cases for the JSON_EXISTS function, specifically targeting complex nested structures and range-based paths. The feedback suggests following the standard MariaDB practice of including a reference to the relevant MDEV task (MDEV-39276) within the test file to provide context for future maintenance.

Comment on lines +1250 to +1251
SELECT JSON_EXISTS('[[[[[Y[[[[n[[[[[[[[[[[n[[[Vn]]]]]]]]]]]]]],]]:]]]](', '$[0 to rrrrrRR-1]') as je;
SELECT JSON_EXISTS('[[[[[Y[[[[[[[[[[[[[[[[[[Vn]]]]]]]]]]]]]],]]:]]]](', '$[0 to rrrrRR-1]') as je;
Copy link
Copy Markdown

Choose a reason for hiding this comment

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

medium

It is a standard practice in the MariaDB test suite to include a reference to the MDEV task (e.g., --echo # MDEV-39276) before adding regression test cases. This provides essential context for future maintenance, especially for complex or fuzzer-generated test cases like these. Note that the corresponding .result file will also need to be updated to reflect this change.

--echo # MDEV-39276
SELECT JSON_EXISTS('[[[[[Y[[[[n[[[[[[[[[[[n[[[Vn]]]]]]]]]]]]]],]]:]]]](', '$[0 to rrrrrRR-1]') as je;
SELECT JSON_EXISTS('[[[[[Y[[[[[[[[[[[[[[[[[[Vn]]]]]]]]]]]]]],]]:]]]](', '$[0 to rrrrRR-1]') as je;

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

MariaDB Foundation Pull requests created by MariaDB Foundation

Development

Successfully merging this pull request may close these issues.

1 participant