Skip to content

GreptimeDB MySQL Protocol SHOW DATABASES Compatibility Issue #7278

@jmmc-tools

Description

@jmmc-tools

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

3. MySQL Information Schema Standard

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

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions