Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Get different result from MySQL when using multi-valued index #40529

Closed
Tracked by #39592
xiongjiwei opened this issue Jan 12, 2023 · 0 comments · Fixed by #40518
Closed
Tracked by #39592

Get different result from MySQL when using multi-valued index #40529

xiongjiwei opened this issue Jan 12, 2023 · 0 comments · Fixed by #40518
Labels
feature/developing the related feature is in development severity/moderate type/bug The issue is confirmed as a bug.

Comments

@xiongjiwei
Copy link
Contributor

Bug Report

Please answer these questions before submitting your issue. Thanks!

1. Minimal reproduce step (Required)

-- 1
set names gbk;
create table t(a json, b int, index idx3(b, (cast(a as char(10) array))));

-- 2
create table t1(pk int primary key, a json, index idx((cast(a as signed array))));
insert into t1 values (6, '1');

-- 3
create table t(a json, index idx(((cast(a as signed array)))));
insert into t1 values (6, '1');
select * from t1 where 1 member of (a);

2. What did you expect to see? (Required)

3. What did you see instead (Required)

4. What is your TiDB version? (Required)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
feature/developing the related feature is in development severity/moderate type/bug The issue is confirmed as a bug.
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant