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

information_schema.tables return wrong results with count(*) #56987

Closed
joechenrh opened this issue Oct 30, 2024 · 2 comments · Fixed by #57506
Closed

information_schema.tables return wrong results with count(*) #56987

joechenrh opened this issue Oct 30, 2024 · 2 comments · Fixed by #57506
Assignees
Labels
affects-8.5 This bug affects the 8.5.x(LTS) versions. component/ddl This issue is related to DDL of TiDB. component/infoschema impact/wrong-result information_schema severity/major type/bug The issue is confirmed as a bug.

Comments

@joechenrh
Copy link
Contributor

joechenrh commented Oct 30, 2024

Bug Report

Please answer these questions before submitting your issue. Thanks!

Queries for infoschema tables still have some case-sensitivity related problems.

1. Minimal reproduce step (Required)

create database test1;
create table test1.Table1;
select count(*) from information_schema.tables where upper(table_name) = "TABLE1";

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

+----------+
| count(*) |
+----------+
|        1 |
+----------+

3. What did you see instead (Required)

+----------+
| count(*) |
+----------+
|        0 |
+----------+

4. What is your TiDB version? (Required)

@joechenrh joechenrh added the type/bug The issue is confirmed as a bug. label Oct 30, 2024
@joechenrh joechenrh changed the title information_schema.tables return wrong result when using upper function information_schema.tables return wrong results Oct 31, 2024
@joechenrh
Copy link
Contributor Author

/severity major

Copy link

ti-chi-bot bot commented Nov 19, 2024

@joechenrh: These labels are not set on the issue: may-affects-5.4, may-affects-6.1, may-affects-6.5, may-affects-7.1, may-affects-7.5, may-affects-8.1.

In response to this:

/remove-label may-affects-5.4
/remove-label may-affects-6.1
/remove-label may-affects-6.5
/remove-label may-affects-7.1
/remove-label may-affects-7.5
/remove-label may-affects-8.1

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.

@joechenrh joechenrh changed the title information_schema.tables return wrong results information_schema.tables return wrong results with count(*) Nov 19, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
affects-8.5 This bug affects the 8.5.x(LTS) versions. component/ddl This issue is related to DDL of TiDB. component/infoschema impact/wrong-result information_schema severity/major type/bug The issue is confirmed as a bug.
Projects
None yet
4 participants