Snowflake metadata collector

concept brazil Updated Sep 10, 2026 8 min read snowflake-metadata-collector.md
Raw file servicenow.com

The Snowflake metadata collector provides read-only access to metadata from an external Snowflake account.

The collector harvests metadata from Snowflake Data Cloud. It collects tabular objects, Horizon objects such as policies and tags, and Snowflake data quality artifacts. It also harvests functions and stored procedures. The collector can gather column statistics and table query counts. In addition, it can harvest metadata for Streamlit applications.

Metadata cataloged

The Snowflake collector catalogs the following information.

Note: The collector harvests all versions of overloaded functions and stored procedures. Each version has its own title/name in the catalog, but a distinct identifier.

Object

Information cataloged

Server

Host

Column

Name, Comments, Data Type, Is Nullable, Default Value, Key type (Primary, foreign)

Table

Name, Comments, Primary key, Schema, External URL (Snowsight)Extended metadata: Is Iceberg, Is dynamic, Is transient, Created Date, Last Modified Date, Last Updated By (Snowflake LAST_DDL_BY), Owner (Snowflake role that owns table), Definition Altered Date, Table Size

Table Index​

Index Cardinality, Column name, Index Type, Index Name, is non Unique, Column Ordinal Position, Pages, Column Sort Sequence

View

Name, Comments, Schema, External URL (Snowsight), Definition Altered Date, Last Modified By (Snowflake LAST_DDL_BY), Is Iceberg, Is dynamic, Is temporary, Created Date, Last Modified Date, Owner (Snowflake role that owns table), SQL definition

Materialized View

Name, Comments, Schema, External URL (Snowsight), Definition Altered Date, Last Modified By (Snowflake LAST_DDL_BY), Is Iceberg, Is dynamic, Is temporary, Created Date, Last Modified Date, Owner (Snowflake role that owns table)

Schema

Identifier, NameExtended metadata: Comments, Created date, Updated

Database

Type, Name, Identifier, Server, Port, Environment, JDBC URLExtended metadata: Comments

User-defined function(this includes User-defined functions created in Snowpark)

NameExtended metadata: Function Definition, Comments, Created Date, Owner (Snowflake Role), Snowflake Function Type (Return Type), Function Signature, Function Language, Packages, Runtime version, Updated

Stored Procedure(this includes Stored Procedures created in Snowpark)

NameExtended metadata: Function Definition, Owner (Snowflake Role), Comments, Return Type, Function Language, Packages, Created Date, Function signature, Snowflake Function Type, Runtime Version, Updated, Stored Procedure Type

If you include the profiling and sampling specific parameters while running the collector, the following additional information is harvested for Columns.

Note: The user/role must have read access to data to be able to harvest profiling information (column statistics).

Object

Information cataloged

Column

  • Average Length (sample)
  • Average Value (sample)
  • Data Distribution
  • Distinct Values
  • Estimated Distinct Values
  • Estimated Non-null Values
  • Maximum Length (sample)
  • Maximum Value (sample) sorted numerically or alphabetically (z-a)
  • Minimum Length (sample)
  • Minimum Value (sample) sorted numerically or alphabetically (a-z)
  • Non-null Values (sample)
  • Sample String Values (first 5 items in a column)

Table

  • Row Count
  • Sample Count (Target sample size)
Following additional information is cataloged when you run the collector with the Collect Snowflake policy information and Collect Snowflake tag information options enabled.
Object Information cataloged
Columns Snowflake masking policies
Snowflake Tags Name, Allowed Values, Comments
Snowflake Tag Values Name, Value
Snowflake Masking Policies Name, Comments, Date created, Snowflake tags, Owner, Type, Policy body, Schema, Database
Snowflake Row access policies Name, Comments, Date created, Snowflake tags, Owner, Type, Policy body, Schema, Database

Following additional information is cataloged when you run the collector with the Collect Snowflake table usage information and Table usage lookback days options enabled.

Object Information cataloged
Table Query Count

Following additional information about data quality metrics is cataloged when you run the collector with the Collect data metric function information option enabled.

Object

Information cataloged

Data Metric Function

  • Identifier: Name of the function
  • Title: Name of the function
  • Description
  • Body Definition of the function

Table

  • Schedule: cron expressions
  • Data metric function observations: function name, column arguments, most recent metric time, value
Following additional information is cataloged when you run the collector with the Collect task information option enabled.

Object

Information cataloged

Snowflake Task

  • Identifier: Task Name
  • Title: Task Title
  • Description: Task comments
  • Task State (suspended, started)
  • Schedule: Cron expressions or intervals
  • Scheduling Mode (warehouse or serverless)
  • Task Definition: SQL statement
  • Warehouse: Compute warehouse name
  • Task Condition: WHEN clause conditions
  • Task Configuration: JSON configuration
  • Allow Overlapping Execution
  • Target Completion Interval
  • Owner Role Type
  • Error Integration
  • Success Integration
  • Last Suspended Reason
  • Last Suspended On
  • Last Committed On
  • Task Owner
  • Execute As User
  • Date Created
Following additional information is cataloged when you run the collector with the Collect semantic view information option enabled.

Object

Information cataloged

Snowflake Semantic View

  • Identifier: Name of the semantic view
  • Title: Name of the semantic view
  • Description

Snowflake Semantic Metric

  • Identifier: Name of the metric
  • Title: Name of the metric
  • Description
  • Expression: SQL expression that defines how the metric is calculated
  • Data type: Snowflake data type of the metric value
  • Access modifier: visibility level (public, private, or unknown)

Snowflake Semantic Dimension

  • Identifier: Name of the dimension
  • Title: Name of the dimension
  • Description
  • Expression: SQL expression that defines the dimension
  • Data type: Snowflake data type of the dimension value
  • Access modifier: visibility level (public, private, or unknown)

Snowflake Semantic Fact

  • Identifier: Name of the fact
  • Title: Name of the fact
  • Description
  • Expression: SQL expression that defines the fact
  • Data type: Snowflake data type of the fact value
  • Access modifier: visibility level (public, private, or unknown)

Snowflake Semantic Logical Table

  • Identifier: Name of the logical table
  • Title: Name of the logical table
  • Synonyms: alternative names for the logical table used in natural language queries
Following additional information is cataloged when you run the collector with the Collect Streamlit app information option enabled.

Object

Information cataloged

Snowflake Streamlit App

  • Identifier: App Name
  • Title: App Title
  • Description: App comments
  • Main file
  • Root location
  • Date Created
  • Owner
## Relationships between objects

The harvested metadata includes catalog pages for the following data asset types. Each catalog page has a relationship to the other related data asset types.

Data asset page

Relationships

Snowflake Row access policies

Tables

Snowflake Masking Policies

Columns, Tag value

Table

Columns, Tag value, Table Indexes, Task that generated the Table

Snowflake Tags

Tag value

Columns

Table, Tag Value, System Tag Value, Table Indexes

Table Indexes

Columns

View

Schema that contains Views, Columns that are part of Views

Materialized View

Schema that contains Materialized Views, Columns that are part of Materialized Views

Schema

Database that contains Schema, Table that is part of Schema, View that is part of Schema, Materialized View that is part of Schema, Streamlit app that is part of schema, Task that is part of the Schema

Streamlit App

Schema that contains Streamlit App

Snowflake Task

Schema that contains Task, Predecessor Tasks (dependencies), Dependent Tasks (required by), Owner, Execution User, Tables generated by Task, Columns generated by Task

Snowflake Semantic View

  • Has metric: associated semantic metrics
  • Has dimension: associated semantic dimensions
  • Has fact: associated semantic facts
  • References logical table: associated logical table references

Snowflake Semantic Metric

Belongs to logical table: the logical table that provides source data

Snowflake Semantic Dimension

  • Belongs to logical table: the logical table that provides source data
  • Cortex Search Service name: name of associated Cortex Search Service for enhanced search

Snowflake Semantic Fact

Belongs to logical table: the logical table that provides source data

Snowflake Semantic Logical Table

  • References table: the actual base database table it represents (data lineage)
  • Has primary key column: database columns that constitute the primary key

Database

Schema contained in Database, Server that this database is hosted on

Server

Database hosted on this server

Data Metric Function

Table or View analyzed by this Snowflake Data Metric Function, Table, Views, Tables, or Functions which the Function depends on

Table

Data Metric Function that analyzes, Views, Tables, or Functions which the Table depends on

View

Data Metric Function that analyzes View, Views, Tables, or Functions which the View depends on

## Lineage and dependencies for Snowflake

The following lineage information is collected by the Snowflake collector. Note that any lineage for SQL Statements defined via variable statements aren't supported.

Important things to note:

  • Any lineage for SQL Statements defined via variable statements are not supported.
  • The collector traces these relationships from a View's columns to ultimate source Table columns across SQL expressions and subqueries.

Object

Lineage available

Column in View

The collector identifies the associated column in an upstream view or table:

  • Where the data is sourced from
  • That sort the rows via ORDER BY
  • That filter the rows via WHERE/HAVING
  • That aggregate the rows via GROUP BY

User-defined function

A Function and:

  • Views referenced in Function
  • Tables referenced in Function
  • Functions referenced in Function

A View and Function referencing View

Stored Procedure

The collector identifies:

  • The associated column in an upstream view or table - Where the data is sourced from - That sort the rows via ORDER BY - That filter the rows via WHERE/HAVING - That aggregate the rows via GROUP BY
  • The downstream table that has its data updated by this stored procedure.

Note: The following stored procedures are not supported:

  • Stored procedures with multitable inserts. However, multiple separate insert statements that insert into one table are supported.
  • Stored procedure with multiple SELECT and INSERT statements not separated by a semicolon delimiter.
  • Stored procedures used to create tables or any transient tables created during the execution scope of a stored procedure.

Snowflake Task

  • Downstream tables that are generated by the task via INSERT statements
  • Downstream columns that are generated by the task
  • Task dependencies via predecessor/successor relationships
Dependencies

The Snowflake collector catalogs dependencies between tables, views, and functions using the Snowflake Account Usage view OBJECT_DEPENDENCIES. See the Snowflake documentation for more information about the OBJECT_DEPENDENCIES view.

Parent Topic:Configuring metadata collectors

Search documentation
Search document titles and file paths on the brazil branch