Skip to content

MySQL function not implemented: MEMBER OF #23008

Closed
Closed

Description

@dengn

Function Information

Function Name: MEMBER OF
Category: operators

MySQL Function Description

MySQL MEMBER OF operator:
JSON member of operator

Expected Behavior

Expected behavior:
According to MySQL documentation, the operator should return correct results.

Current Behavior in MatrixOne

This function is not implemented in MatrixOne.

Error Message: (1064, 'SQL parser error: You have an error in your SQL syntax; check the manual that corresponds to your MatrixOne server version for the right syntax to use. syntax error at line 1 column 20 near "

Test Case

SELECT 'a' MEMBER OF('["a", "b", "c"]') AS result1

MySQL Documentation

Request

Please implement the MEMBER OF function to improve MySQL compatibility.

Activity

  1. added
    priority/p0
    kind/compatibility
    ai-easy
    on Nov 21, 2025
  2. added this to the MO-202511 milestone on Nov 21, 2025
  3. fengttt commented on Nov 22, 2025

    @fengttt
    Contributor

    Need parser support.

    In general, all json related functions should use jq, which is much more powerful and expressive.

  4. modified the milestones: MO-202511, MO-202602 on Feb 3, 2026
  5. VioletQwQ-0 commented on Sep 11, 2026

    @VioletQwQ-0
    Collaborator

    QA handoff for merged PR #28096: #28096

    PR exact head: f53fd18; merge commit: 790a53a. The PR records a real embedded SQL/prepared/binary-protocol WHERE regression PASS and canonical func_json_member_of 43/43 PASS. The exact-head full CI was not green: the broad Compose BVT reported 16 failures in unrelated temporary_table_limitation coverage, with the coverage result failing downstream; this is not claimed as a full-suite PASS.

    请在真实环境复测 MEMBER OF 的数组/非数组、SQL NULL/JSON null、字符串不转数字、binary/非 JSON 域、YEAR、prepared COM_STMT_EXECUTE 重复绑定及实际 WHERE 消费者路径,并记录 PASS/FAIL。Issue 保持 OPEN,当前仅转 QA,未声明关闭。

  6. slyunnn commented on Sep 11, 2026

    @slyunnn

    QA verification for merged PR #28096 is complete.

    PR exact head: f53fd18d8288a58931dc93f8be08225c1577cef3; merge commit: 790a53a1b3fc7eb62b801ba5cf29261435220b7d.

    The PR already records PASS for the embedded SQL/prepared/binary-protocol regression and func_json_member_of 43/43. The exact-head full CI was not green due to 16 unrelated temporary_table_limitation failures, so this is not considered a full-suite PASS.

    For QA, retested MEMBER OF on current main in a real 2 CN / 1 TN / 1 Log / Proxy environment, covering:

    • array and non-array RHS;
    • SQL NULL vs JSON null;
    • string non-coercion to numeric;
    • binary and non-JSON domains;
    • YEAR;
    • repeated COM_STMT_EXECUTE bindings;
    • the actual WHERE consumer path.

    All covered scenarios passed, including the expected error handling for binary-character-set RHS. The original regression is no longer reproducible, and repeated binary prepared-statement execution remains stable.

    Large-data regression is not required because this is deterministic per-value operator behavior and is not dependent on row count, resource pressure, spill, or concurrency.

    QA result: PASS. Issue remains OPEN for normal maintainer disposition; this QA verification does not close the issue.

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

Metadata

Metadata

Assignees

Labels

ai-easykind/compatibilityparser mysql.yphase/testingpriority/p0

Projects

No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions