Account Usage views: Column updates to support the Snowflake Native App Framework¶
Attention
This behavior change is in the 2024_01 bundle.
For the current status of the bundle, refer to Bundle History.
The behavior of these Account Usage views is as follows:
- CLASSES
- CLASS_INSTANCES
- FILE_FORMATS
- MASKING_POLICIES
- PIPES
- ROW_ACCESS_POLICIES
- SCHEMATA
- SEQUENCES
- SESSION_POLICIES
- STAGES
- TAGS
- VIEWS
- DATABASES
- PROCEDURES
- ROLES
- AGGREGATE_QUERY_HISTORY
- QUERY_HISTORY
- GRANTS_TO_ROLES
- Before the change:
Regarding the
owner_role_typecolumn:-
Some of the views do not include the column.
-
Some of the views include the column but:
- Do not include support for the application object by specifying
APPLICATIONas the owner object type. - Are not consistent with how other Account Usage views specify the column.
- Do not include support for the application object by specifying
-
In the GRANTS_TO_ROLES view:
- The
grantee_namecolumn specifies the name of the application object, and thegranted_tocolumn specifiesAPPLICATION.
- The
-
- After the change:
The changes to the views are grouped as follows:
-
The CLASSES and CLASS_INSTANCES views update the column to return the identifier of the role that owns the class or the instance of the class.
-
The following views already include the
owner_role_typecolumn and add support forAPPLICATIONas a possible value:- FILE_FORMATS
- MASKING_POLICIES
- PIPES
- ROW_ACCESS_POLICIES
- SCHEMATA
- SEQUENCES
- SESSION_POLICIES
- STAGES
- TAGS
- VIEWS
-
The following views add the column as the last column in the view and add support for
APPLICATIONas a possible value:- DATABASES
- PROCEDURES
- ROLES
-
The following views already include the
role_typecolumn and add support forAPPLICATIONas a possible value:- AGGREGATE_QUERY_HISTORY
- QUERY_HISTORY
-
In the GRANTS_TO_ROLES view:
- The
grantee_namecolumn specifies the name of the application object and thegranted_tocolumn specifiesAPPLICATION. - The
granted_bycolumn specifies the name of the application object when there are grants to application roles. - The
granted_by_role_typecolumn specifiesAPPLICATION.
- The
-
Ref: 1379