-
Notifications
You must be signed in to change notification settings - Fork 425
Open
Labels
C-bugCategory BugsCategory Bugsgood first issueGood for newcomersGood for newcomershelp wantedExtra attention is neededExtra attention is needed
Description
What type of bug is this?
Incorrect result
What subsystems are affected?
Other
Minimal reproduce step
Current Behavior (GreptimeDB):
SHOW DATABASES;
+---------+
| Schemas |
+---------+
| public |
+---------+Expected Behavior (MySQL Standard):
SHOW DATABASES;
+----------+
| Database |
+----------+
| public |
+----------+What did you expect to see?
SHOW DATABASES;
+---------+
| Schemas | ← Following standard MYSQL protocol specification : column should be | Database |
+---------+
| public |
+---------+
It's
MySQL Protocol Specification
- URL: https://dev.mysql.com/doc/refman/8.3/en/show-databases.html
- Evidence: MySQL Reference Manual specifies column name as
Database - Citation: "SHOW DATABASES lists the databases on the MySQL server host... The output displays only those databases for which you have some kind of privilege"
- Standard Column Name:
Database(confirmed in MariaDB docs at https://mariadb.com/docs/server/reference/sql-statements/administrative-sql-statements/show/show-databases showing output with| Database |)
3. MySQL Information Schema Standard
- URL: https://dev.mysql.com/doc/refman/8.3/en/information-schema.html
- INFORMATION_SCHEMA.SCHEMATA Table: Contains
SCHEMA_NAMEcolumn (notSchemas) - Evidence: Standard metadata tables use singular column names per database entry
What did you see instead?
Error Trace
JDBC connection fails:
```
ERROR 1064 [42000]: ERROR: Failed to describe statement
```
This is only one example, but column names in other metadata queries (such as SHOW TABLES) could also be affected if they do not follow the MySQL specification. As a result, JDBC connectors using the MySQL driver fail to retrieve metadata correctly.
What operating system did you use?
helm greptimedb-cluster repo
What version of GreptimeDB did you use?
1.0.0-beta.1
Relevant log output and stack trace
Metadata
Metadata
Assignees
Labels
C-bugCategory BugsCategory Bugsgood first issueGood for newcomersGood for newcomershelp wantedExtra attention is neededExtra attention is needed