Skip to content

DESCRIBE fails for information_schema table/views #15900

@systay

Description

@systay

Overview of the Issue

Trying to DESCRIBE a table/view on the information_schema database fails on Vitess:

Vitess 20:

mysql> describe information_schema.administrable_role_authorizations;
ERROR 1049 (42000): VT05003: unknown database 'information_schema' in vschema

mysql> describe information_schema.files;
ERROR 1049 (42000): VT05003: unknown database 'information_schema' in vschema

Other commands do work:

mysql> show columns from information_schema.administrable_role_authorizations;
+--------------+--------------+------+-----+---------+-------+
| Field        | Type         | Null | Key | Default | Extra |
+--------------+--------------+------+-----+---------+-------+
| USER         | varchar(97)  | YES  |     | NULL    |       |
| HOST         | varchar(256) | YES  |     | NULL    |       |
| GRANTEE      | varchar(97)  | YES  |     | NULL    |       |
| GRANTEE_HOST | varchar(256) | YES  |     | NULL    |       |
| ROLE_NAME    | varchar(255) | YES  |     | NULL    |       |
| ROLE_HOST    | varchar(256) | YES  |     | NULL    |       |
| IS_GRANTABLE | varchar(3)   | NO   |     |         |       |
| IS_DEFAULT   | varchar(3)   | YES  |     | NULL    |       |
| IS_MANDATORY | varchar(3)   | NO   |     |         |       |
+--------------+--------------+------+-----+---------+-------+
9 rows in set (0.02 sec)

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions