forked from trinodb/trino
-
Notifications
You must be signed in to change notification settings - Fork 7
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Allow differentiating materialized views from tables efficiently
Tools often need to list tables/relations and know whether they are regular tables, views, or materialized views. For example, on a table one can `SHOW CREATE TABLE` or `DROP TABLE`, but syntax for views and materialized views is different. Before this change, to differentiate different relations types, tools need to join `information_schema.tables` with `system.metadata.materialized_views`. This is effective, but not efficient: `system.metadata.materialized_views` contains much more information. To address the inefficiency, this commit introduces a new column to `information_schema.tables`. To guarantee SQL spec future-compatibility, the column is hidden and prefixed with `trino_`
- Loading branch information
Showing
3 changed files
with
25 additions
and
15 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters