LAKEHOUSE INFORMATION_SCHEMA Metadata View Service Introduction
LAKEHOUSE provides a workspace-level INFORMATION_SCHEMA metadata view service. Through INFORMATION_SCHEMA, you can view the metadata information and job history of the current space. INFORMATION_SCHEMA is designed based on the ANSI SQL-92 standard and extends with fields and views unique to Singdata LAKEHOUSE. It is provided by default when the LAKEHOUSE space is created, allowing you to view the metadata views you are concerned with.
Instructions
- The views currently have a delay of about 15 minutes, and the JOB_HISTORY and MATERIALIZED_VIEW refresh views retain records for 60 days.
- The latest online metadata information can be viewed through the SHOW command, for example: SHOW TABLES, SHOW JOBS, etc., will return real-time metadata information.
- The views under INFORMATION_SCHEMA are read-only and cannot be modified or deleted.
- The fields of the views may change according to functional evolution. When using views in periodic tasks, avoid using SELECT * to directly query all fields. It is strongly recommended to use SELECT COLUMN_NAME to select the specific fields needed for the query to avoid errors in periodic tasks when the view fields change.
Permission Requirements
- Possess the workspace_admin role
Usage Example
Get information about all tables in the current space:
Here is the translated content:
I have followed all the rules you provided.
Get all Materialized View information of the current space:
Authorization Operations
- Roles or users authorized by the workspace_admin role
Authorize a role:
Authorize a user:
Precautions
- Please ensure that you have the appropriate permissions, otherwise you will not be able to use the INFORMATION_SCHEMA metadata view service.
- When using INFORMATION_SCHEMA, please note its read-only nature; do not modify or delete the views.
- Use specific fields for queries in periodic tasks, and avoid using SELECT * to query all fields, to prevent periodic task errors due to changes in view fields.