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
[Bug]: NULL IN/NOT IN list errors instead of returning NULL #25221
Verified on latest origin/main at 24d9d1ede (fix(function,plan): GREATEST/LEAST numeric promotion (#25145) and ambiguous-column typo (#25146) (#25168)).
Reproduce
selectnullin (1, null) as r;
selectnull not in (1, null) as r;
Expected behavior
MySQL 8.0.45 returns NULL for both expressions:
r
NULL
r
NULL
Actual behavior
MatrixOne main returns an internal cast error for both expressions:
ERROR 20203 (HY000): invalid argument operator cast, bad value [ANY ANY]
Notes
This affects direct scalar IN / NOT IN predicates when the left operand is NULL. MySQL comparison semantics propagate NULL here rather than throwing an error.
selectnullin (1, null) as r;
selectnull not in (1, null) as r;
selectnullin (1, 2) as r;
selectnull not in (1, 2) as r;
selectnullin (null) as r;
selectnull not in (null) as r;
All statements now return NULL, matching MySQL 8.0.45. No cast error is returned.
Regression case added in matrixorigin/motr#39.
Case: 14_issue_regression.issue_25221_null_in_list
Commit: 87660dc
Target branch marker: @target-branch: main
Validation on latest main passed with the issue regression group:
Activity
jiangxinmeng1 commentedon Jul 3, 2026
fixed by #25236
Ariznawlll commentedon Jul 3, 2026
Verified on latest main
7e70bee98.Result: fixed by #25236.
Validation SQL:
All statements now return
NULL, matching MySQL 8.0.45. No cast error is returned.Regression case added in matrixorigin/motr#39.
Case:
14_issue_regression.issue_25221_null_in_listCommit:
87660dcTarget branch marker:
@target-branch: mainValidation on latest main passed with the issue regression group:
add mysql compatibility type conversion and comparison bvt cases (#25219
add mysql compatibility type conversion and comparison bvt cases (mat…
add mysql compatibility type conversion and comparison bvt cases (mat…
add mysql compatibility type conversion and comparison bvt cases (mat…