SYSTEM$GET_COLUMN_COMMENT_PROPAGATION_SOURCE

functionnot supportedCore SQL functionspreview

docs.snowflake.com ↗

System functions

Returns the column that a propagated comment was originally written on. Given a column whose comment arrived through column comment propagation, the function walks the as-is column lineage upstream and returns the fully qualified name of the column whose comment a user wrote. Use this function to tell a comment that somebody wrote on a column from a comment that propagation copied in, and to find the column to edit when you want to change the comment everywhere it appears.

Syntax

SYSTEM$GET_COLUMN_COMMENT_PROPAGATION_SOURCE( '<column_name>' )

Parameters

NameRequiredDescription
column_namerequiredSpecifies the fully qualified name of the column to resolve, in the form database_name.schema_name.object_name.column_name. The object can be a table, view, materialized view, or dynamic table.

Returns

Returns a VARCHAR containing the fully qualified name of the origin column, or NULL when there’s no propagation source to report. The function returns NULL in each of the following cases: - The column’s comment was written by a user, rather than propagated. - The column has no comment. - No upstream column carrying a user-written comment is reachable through as-is lineage. - Your role can’t resolve an object on the upstream path. The walk stops at the first object you can’t see, so the function doesn’t disclose the name of an object you don’t have access to.

Usage notes