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

can't use collate clause for json when the new collation is enabled #31640

Closed
Tracked by #36993
wjhuang2016 opened this issue Jan 13, 2022 · 1 comment · Fixed by #37211
Closed
Tracked by #36993

can't use collate clause for json when the new collation is enabled #31640

wjhuang2016 opened this issue Jan 13, 2022 · 1 comment · Fixed by #37211
Assignees
Labels
component/json severity/moderate sig/sql-infra SIG: SQL Infra type/bug The issue is confirmed as a bug.

Comments

@wjhuang2016
Copy link
Member

Bug Report

Please answer these questions before submitting your issue. Thanks!

1. Minimal reproduce step (Required)

CREATE TABLE `tt` (
  `a` char(10) COLLATE utf8mb4_general_ci DEFAULT NULL,
  `b` enum('a','B','c') COLLATE utf8mb4_general_ci DEFAULT NULL,
  `c` set('a','B','c') COLLATE utf8mb4_general_ci DEFAULT NULL,
  `d` json DEFAULT NULL
)
select min(d collate utf8mb4_bin) from tt;

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

No error

3. What did you see instead (Required)

Error 1253: COLLATION 'utf8mb4_bin' is not valid for CHARACTER SET 'binary'

4. What is your TiDB version? (Required)

master

@wjhuang2016 wjhuang2016 added type/bug The issue is confirmed as a bug. affects-4.0 This bug affects 4.0.x versions. affects-5.0 This bug affects 5.0.x versions. affects-5.1 This bug affects 5.1.x versions. affects-5.2 This bug affects 5.2.x versions. affects-5.3 This bug affects 5.3.x versions. affects-5.4 This bug affects the 5.4.x(LTS) versions. severity/moderate sig/planner SIG: Planner labels Jan 13, 2022
@yudongusa
Copy link

@wjhuang2016 since SQL team has been working collation related refactor and improvement, assign the collation related issues to sig/sql-infra for now.

@yudongusa yudongusa added sig/sql-infra SIG: SQL Infra and removed sig/planner SIG: Planner labels Jan 13, 2022
@xiongjiwei xiongjiwei removed affects-4.0 This bug affects 4.0.x versions. affects-5.0 This bug affects 5.0.x versions. affects-5.1 This bug affects 5.1.x versions. affects-5.2 This bug affects 5.2.x versions. affects-5.3 This bug affects 5.3.x versions. affects-5.4 This bug affects the 5.4.x(LTS) versions. labels Aug 18, 2022
@xiongjiwei xiongjiwei self-assigned this Aug 18, 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 severity/moderate sig/sql-infra SIG: SQL Infra type/bug The issue is confirmed as a bug.
Projects
None yet
Development

Successfully merging a pull request may close this issue.

3 participants