You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
[Compatibility]: MySQL MEMBER OF JSON operator is rejected by the parser #28035
The MySQL JSON membership operator value MEMBER OF(json_array) is not accepted by the MatrixOne parser.
Environment
Branch: main
Commit: 17c161a31b47a22e71ca222839143f66717ac365
Deployment: local single-node MatrixOne
Test date: 2026-09-03
Steps to reproduce
SELECT17 MEMBER OF('[23, "abc", 17]');\n```\n\n## Actual behavior\n\nThe statement fails with a syntax error at `OF`.\n\n## Expected behavior\n\nMySQL returns `1` for a matching JSON-array element, `0` for a nonmatching element, and `NULL` when either operand is SQL `NULL`.\n\n## Stability and controls\n\n- Reproducer: parser rejection was identical in 3/3 rounds.\n- Control: `JSON_CONTAINS('{"a":"x"}', '"x"', '$.a')` returned `1` on the same service.\n- Failure atomicity: the reproducer is a read-only expression.\n\n## Evidence\n\nhttps://dev.mysql.com/doc/refman/8.0/en/json-search-functions.html\n\n## Code analysis\n\nThe MySQL grammar and function registry contain no `MEMBER OF` implementation.\n\n## Regression coverage\n\nAfter implementation, add BVT cases for numeric/string/JSON values, no match, SQL `NULL`, malformed JSON, and predicates over JSON columns.
Closing as a duplicate of #23008. Both issues track the same missing MySQL MEMBER OF JSON operator/parser support. #23008 is the canonical issue and already carries the implementation ownership and parser discussion; please continue implementation and validation there.
Repository automation reopened this duplicate because it has no PR-originated link. There is no independent fix PR for this duplicate and creating one solely to bypass closure automation would be incorrect. Keeping this item deferred and labeled duplicate; #23008 remains the canonical implementation and validation tracker. This item can be closed together with the canonical fix once its real PR is linked.
This report duplicates #23008: both track the missing MySQL MEMBER OF JSON operator/parser support. The canonical implementation was merged in PR #28096 and the original operator, prepared-statement, and WHERE-consumer paths have since passed QA on current main (recorded on #23008).
Closing this duplicate now that the canonical fix and QA are complete. The reproduction and original report remain here for reference.
Activity
VioletQwQ-0 commentedon Sep 3, 2026
Closing as a duplicate of #23008. Both issues track the same missing MySQL
MEMBER OFJSON operator/parser support. #23008 is the canonical issue and already carries the implementation ownership and parser discussion; please continue implementation and validation there.VioletQwQ-0 commentedon Sep 3, 2026
Repository automation reopened this duplicate because it has no PR-originated link. There is no independent fix PR for this duplicate and creating one solely to bypass closure automation would be incorrect. Keeping this item deferred and labeled duplicate; #23008 remains the canonical implementation and validation tracker. This item can be closed together with the canonical fix once its real PR is linked.
[Feature] Support MySQL MEMBER OF JSON operator (#28096)
[Feature] Support MySQL MEMBER OF JSON operator (matrixorigin#28096)
[Feature] Support MySQL MEMBER OF JSON operator (matrixorigin#28096)
[Feature] Support MySQL MEMBER OF JSON operator (matrixorigin#28096)
XuPeng-SH commentedon Oct 23, 2026
This report duplicates #23008: both track the missing MySQL
MEMBER OFJSON operator/parser support. The canonical implementation was merged in PR #28096 and the original operator, prepared-statement, and WHERE-consumer paths have since passed QA on current main (recorded on #23008).Closing this duplicate now that the canonical fix and QA are complete. The reproduction and original report remain here for reference.