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

The comparison between json and binary is different from MySQL #31918

Closed
Tracked by #36993
tangenta opened this issue Jan 24, 2022 · 0 comments · Fixed by #37200
Closed
Tracked by #36993

The comparison between json and binary is different from MySQL #31918

tangenta opened this issue Jan 24, 2022 · 0 comments · Fixed by #37200
Assignees
Labels
component/json feature/developing the related feature is in development severity/major sig/execution SIG execution type/bug The issue is confirmed as a bug.

Comments

@tangenta
Copy link
Contributor

Bug Report

Please answer these questions before submitting your issue. Thanks!

1. Minimal reproduce step (Required)

drop table if exists t1, t2;
create table t1 (a binary(13));
insert into t1 values('');
create table t2 (a json);
insert into t2 values ('"str"');
select * from t1 join t2 on t1.a <= t2.a;

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

MySQL(5.7 && 8.0):

Empty set (0.03 sec)

3. What did you see instead (Required)

+---------------+-------+
| a             | a     |
+---------------+-------+
|               | "str" |
+---------------+-------+
1 row in set (0.01 sec)

4. What is your TiDB version? (Required)

afa1335

@tangenta tangenta added the type/bug The issue is confirmed as a bug. label Jan 24, 2022
@seiya-annie seiya-annie added severity/moderate sig/sql-infra SIG: SQL Infra sig/execution SIG execution and removed sig/sql-infra SIG: SQL Infra labels Jan 24, 2022
@xiongjiwei xiongjiwei added severity/major feature/developing the related feature is in development and removed severity/minor labels Aug 16, 2022
@ti-chi-bot ti-chi-bot added may-affects-4.0 This bug maybe affects 4.0.x versions. may-affects-5.0 This bug maybe affects 5.0.x versions. may-affects-5.1 This bug maybe affects 5.1.x versions. may-affects-5.2 This bug maybe affects 5.2.x versions. may-affects-5.3 This bug maybe affects 5.3.x versions. may-affects-5.4 This bug maybe affects 5.4.x versions. may-affects-6.0 may-affects-6.1 may-affects-6.2 labels Aug 16, 2022
@YangKeao YangKeao self-assigned this Aug 17, 2022
@xiongjiwei xiongjiwei removed may-affects-4.0 This bug maybe affects 4.0.x versions. may-affects-5.1 This bug maybe affects 5.1.x versions. may-affects-5.2 This bug maybe affects 5.2.x versions. may-affects-5.3 This bug maybe affects 5.3.x versions. may-affects-5.4 This bug maybe affects 5.4.x versions. may-affects-5.0 This bug maybe affects 5.0.x versions. may-affects-6.0 may-affects-6.1 labels Aug 18, 2022
ti-chi-bot pushed a commit that referenced this issue Aug 23, 2022
@xiongjiwei xiongjiwei mentioned this issue Aug 30, 2022
34 tasks
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
component/json feature/developing the related feature is in development severity/major sig/execution SIG execution type/bug The issue is confirmed as a bug.
Projects
None yet
Development

Successfully merging a pull request may close this issue.

7 participants