Schema level #
Schema metadata #
View and edit metadata associated with your schema, such as a description, associated tags, relevant web links, a list of user contacts, and the schema’s owning role.
Click the pencil icon to edit schema metadata. Schema metadata can only be edited by the schema’s owner. Metadata is otherwise read-only. If the schema does not have an assigned owner, ownership is inherited from the parent catalog. Owner inheritance is denoted by a right-facing enter key icon preceding the owner icon.
Click Show details to see an expanded view of the schema’s metadata:
- Description displays the description of the schema, if any.
- Tags lists the tags associated with the schema. Apply tags to the schema to enable attribute-based access control policies.
- Links displays a list of links relevant to the schema. Links consist of a title and a URL.
- Contacts displays users who can provide information and support for the schema. You can add any user with a role that owns the schema directly, or indirectly.
- Owner displays the owner of the schema.
The Tables pane displays a list of tables found within the schema.
Refresh the list of tables, or search through the list by using the Refresh button on the left, or the Search tables field on the right, respectively.
Click the name of a table to open the overview page for that table.
The Clusters table shows a list of clusters, and the following information about each one:
- Name shows the name of the cluster.
- Status displays the status.
- Catalogs lists the configured catalogs used in the cluster.
- Region displays the region of the cloud provider.
- Owner displays the role that owns the entity.
- Connection provides details to use to connect clients to the cluster.
The Views pane displays a list of views found within the schema.
You can refresh the list of views, or search through the list by using the Refresh button on the left, or the Search views field on the right, respectively.
Click the name of a view for details on any schema views.
The Metrics pane displays a visual analysis of important metrics about the catalog:
Use the Dates menu above the chart to view data for different time intervals.
Charts display the following metrics across all clusters:
- The Queries over time chart shows the absolute number of run, queued, and failed queries.
- The Top users chart shows the most active users by processed queries, by used CPU time, by data read, or by data written.
- The Top sources chart shows the most active client applications, such as the query editor, the Trino CLI, and others by processed queries, by used CPU time, by data read, or by data written.
- The Top tables chart shows the most active tables and views by processed queries, by data read, or by data written.
The Definition pane displays the results of a
SHOW CREATE SCHEMA
statement for the current schema.
- Click the Edit icon to open the statement in the query editor.
- Click the Copy icon to copy the statement to the clipboard.
Click the Expand icon to view the full query text.
Query history #
The Query history page shows a list of queries that accessed this schema. Look for queries that occurred within a pre-defined date range using the Dates menu on the right.
Query history is limited to your role’s history unless your current role is
accountadmin or your role has the View all query
Click Refresh to reload queries in the list.
The following columns are displayed:
- Status uses for successfully completed queries, and for failed queries.
- Query ID shows the unique identifier for each query; click the ID to open the Query details pane for the query.
- Cluster is the name of the cluster used to process the query.
- Query text displays the full or partial SQL text of the query.
- Email identifies the user who submitted the query.
- Role specifies the name of the role used by the user when submitting the query.
- Create date uses the browser timezone and shows the start date and time of the query processing.
- Elapsed time is the total duration for processing the query.
Audit log #
The Audit log pane displays an audit trail of administrative actions related to this catalog and its schemas, tables, views, and columns. Your current role must have the View audit log privilege in order to see audit log entries from all users.
The following columns are shown:
- Operation: The configuration change that was performed. Possible values include update, delete, suspend, and others depending on the object.
- Object: The type of object, such as catalog or schema, for which the configuration was changed.
- Object name: The name of the specific object.
- What changed: A description of the changed attributes including values.
- User: The user who performed the change.
- Time of change: The date and time the change was performed.
The following columns are displayed:
- Role specifies the name of the role.
- Privileges shows the privileges for the role and ownership rights.
Use the Add privileges button to add or remove access to a privilege:
Select a role from the menu.
By default, new privileges allow access rights, but you can click the deny switch to create a deny privilege.
Select the privileges to grant to the current role, and click the Add privileges button to save the privilege grants.
To revoke an existing privilege:
- Click the on a privilege tag.
- In the resulting dialog, click Yes, revoke privilege.
Is the information on this page helpful?