Class CatalogScope

  • All Implemented Interfaces:
    SqlValidatorScope

    class CatalogScope
    extends DelegatingScope
    Implementation of SqlValidatorScope that can see all schemas in the current catalog.

    Occurs near the root of the scope stack; its parent is typically EmptyScope.

    Helps resolve schema.table.column column references, such as

    select sales.emp.empno from sales.emp
    • Field Detail

      • names

        final com.google.common.collect.ImmutableList<java.lang.String> names
        Fully-qualified name of the catalog. Typically empty or ["CATALOG"].
    • Constructor Detail

      • CatalogScope

        CatalogScope​(SqlValidatorScope parent,
                     java.util.List<java.lang.String> names)
    • Method Detail

      • getNode

        public SqlNode getNode()
        Description copied from interface: SqlValidatorScope
        Returns the root node of this scope. Never null.