Skip to content

Conversation

@ebyhr
Copy link
Member

@ebyhr ebyhr commented Jul 23, 2025

Description

This simplifies EXPLAIN result:

trino> explain table memory.information_schema.tables;
                                                                    Query Plan
--------------------------------------------------------------------------------------------------------------------------------------------------
 Trino version: testversion
 Fragment 0 [SOURCE]
     Output layout: [table_catalog, table_schema, table_name, table_type]
     Output partitioning: SINGLE []
     Output[columnNames = [table_catalog, table_schema, table_name, table_type]]
     │   Layout: [table_catalog:varchar, table_schema:varchar, table_name:varchar, table_type:varchar]
     │   Estimates: {rows: ? (?), cpu: 0, memory: 0B, network: 0B}
     └─ TableScan[table = memory:InformationSchemaTableHandle[catalogName=memory, table=TABLES, prefixes=[memory.*.*], limit=OptionalLong.empty]]
            Layout: [table_catalog:varchar, table_schema:varchar, table_name:varchar, table_type:varchar]
            Estimates: {rows: ? (?), cpu: ?, memory: 0B, network: 0B}
            table_type := InformationSchemaColumnHandle[columnName=table_type]
            table_catalog := InformationSchemaColumnHandle[columnName=table_catalog]
            table_schema := InformationSchemaColumnHandle[columnName=table_schema]
            table_name := InformationSchemaColumnHandle[columnName=table_name]

                                                Query Plan
----------------------------------------------------------------------------------------------------------
 Trino version: testversion
 Fragment 0 [SOURCE]
     Output layout: [table_catalog, table_schema, table_name, table_type]
     Output partitioning: SINGLE []
     Output[columnNames = [table_catalog, table_schema, table_name, table_type]]
     │   Layout: [table_catalog:varchar, table_schema:varchar, table_name:varchar, table_type:varchar]
     │   Estimates: {rows: ? (?), cpu: 0, memory: 0B, network: 0B}
     └─ TableScan[table = memory:catalog=memory table=TABLES prefixes=[memory.*.*]]
            Layout: [table_catalog:varchar, table_schema:varchar, table_name:varchar, table_type:varchar]
            Estimates: {rows: ? (?), cpu: ?, memory: 0B, network: 0B}
            table_catalog := table_catalog
            table_schema := table_schema
            table_type := table_type
            table_name := table_name

Release notes

(x) This is not user-visible or is docs only, and no release notes are required.

@cla-bot cla-bot bot added the cla-signed label Jul 23, 2025
@ebyhr ebyhr merged commit 3ef91a7 into trinodb:master Jul 23, 2025
187 of 188 checks passed
@ebyhr ebyhr deleted the ebi/information_schema branch July 23, 2025 10:53
@github-actions github-actions bot added this to the 477 milestone Jul 23, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Development

Successfully merging this pull request may close these issues.

2 participants