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

COERCIBILITY is wrong for json type #31541

Closed
Defined2014 opened this issue Jan 11, 2022 · 4 comments · Fixed by #31576
Closed

COERCIBILITY is wrong for json type #31541

Defined2014 opened this issue Jan 11, 2022 · 4 comments · Fixed by #31576
Labels
severity/moderate sig/sql-infra SIG: SQL Infra type/bug This issue is a bug.

Comments

@Defined2014
Copy link
Contributor

Bug Report

Please answer these questions before submitting your issue. Thanks!

1. Minimal reproduce step (Required)

create table t(a json, b blob);
insert into t values ('{"a": "b"}', 0x3f);
SELECT COERCIBILITY(a), COERCIBILITY(b) from t;

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

mysql> SELECT COERCIBILITY(a), COERCIBILITY(b) from t;
+-----------------+-----------------+
| COERCIBILITY(a) | COERCIBILITY(b) |
+-----------------+-----------------+
|               2 |               2 |
+-----------------+-----------------+

3. What did you see instead (Required)

mysql> SELECT COERCIBILITY(a), COERCIBILITY(b) from t;
+-----------------+-----------------+
| COERCIBILITY(a) | COERCIBILITY(b) |
+-----------------+-----------------+
|               5 |               2 |
+-----------------+-----------------+

4. What is your TiDB version? (Required)

mysql> SELECT tidb_version();
+-----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
| tidb_version()                                                                                                                                                                                                                                |
+-----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
| Release Version: None
Edition: Community
Git Commit Hash: None
Git Branch: None
UTC Build Time: None
GoVersion: go1.17.2
Race Enabled: false
TiKV Min Version: v3.0.0-60965b006877ca7234adaced7890d7b029ed1306
Check Table Before Drop: false |
+-----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
1 row in set (0.00 sec)
@Defined2014 Defined2014 added the type/bug This issue is a bug. label Jan 11, 2022
@Defined2014
Copy link
Contributor Author

/severity moderate

@Defined2014
Copy link
Contributor Author

/sig sql-infra

@Defined2014
Copy link
Contributor Author

/label sig/sql-infra

@ti-chi-bot
Copy link
Member

@Defined2014: The label(s) sig/sql-infra cannot be applied. These labels are supported: challenge-program, compatibility-breaker, first-time-contributor, contribution, require-LGT3, good first issue, correctness, duplicate, proposal, security, needs-more-info, needs-cherry-pick-3.0, needs-cherry-pick-3.1, needs-cherry-pick-4.0, needs-cherry-pick-5.0, needs-cherry-pick-5.1, needs-cherry-pick-5.2, needs-cherry-pick-5.3, needs-cherry-pick-5.4, affects-4.0, affects-5.0, affects-5.1, affects-5.2, affects-5.3, backport-4.0.14, backport-4.0.15, backport-5.0.3, backport-5.0.4, backport-5.1.0, backport-5.1.1, backport-5.1.2.

In response to this:

/label sig/sql-infra

Instructions for interacting with me using PR comments are available here. If you have questions or suggestions related to my behavior, please file an issue against the ti-community-infra/tichi repository.

@Defined2014 Defined2014 changed the title COERCIBILITY is wrong for json type COERCIBILITY is wrong for json type Jan 11, 2022
@ChenPeng2013 ChenPeng2013 added the sig/execution SIG execution label Jan 11, 2022
@wshwsh12 wshwsh12 added sig/sql-infra SIG: SQL Infra and removed sig/execution SIG execution labels Jan 11, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
severity/moderate sig/sql-infra SIG: SQL Infra type/bug This issue is a bug.
Projects
None yet
Development

Successfully merging a pull request may close this issue.

4 participants