Analysis specification¶
Specifies all the information that analysis runners need to run an analysis, including which template to use, which tables to pass to the template, and any variable values used by a template. If not using free-form SQL to query data, any analysis runners that want to run an analysis use this specification to define the template and input data.
Schema:
api_versionThe version of the Collaboration API used. Must be
2.0.0.spec_typeSpecification type identifier. Must be
analysis.template: template_idThe ID of the template to use for this analysis. This must be the template ID obtained when the template was registered, not the template name.
name(Optional)A unique, user-friendly name for this analysis. Must follow Snowflake identifier rules with a maximum of 75 characters and be unique within your Snowflake data clean room account.
version(Optional)A version identifier for this analysis specification (maximum 20 characters). Must follow Snowflake identifier rules and be unique within your account for this analysis name. A good format to use is YYYY_MM_DD_V#. For example:
2025_10_22_V1.description(Optional)A high-level description of what this analysis does (maximum 1,000 characters).
template_configuration(Optional)Values used when running the specified template.
view_mappings(Optional)Mapping of argument names to template view names for shared data offerings.
source_tables(Optional)List of view names to populate the
source_tabletemplate variable. Use the table aliases specified in the data offering spec. You can get a list of available views by calling VIEW_DATA_OFFERINGS. Use the view names from the TEMPLATE_VIEW_NAME column. Format of each entry iscollaborator_alias.data_offering_ID.dataset_alias.argument_name: view_nameCustom mapping of an argument name to a template view name (maximum 255 characters each).
local_view_mappings(Optional)Mapping of argument names to local template view names for private datasets.
my_tables(Optional)List of table names to populate the
my_tabletemplate variable. This is available only to private datasets that you linked by calling LINK_LOCAL_DATA_OFFERING. Format of each entry iscollaborator_alias.data_offering_ID.dataset_alias.argument_name: view_nameCustom mapping of an argument name to a local template view name (maximum 255 characters each).
arguments(Optional)Template arguments as key-value pairs. Argument values can be strings, numbers, Booleans, arrays, or objects depending on the template requirements.
activation(Required for activation templates)Activation-specific configuration required when running activation templates.
snowflake_collaboratorCollaborator alias for the activation destination (maximum 25 characters). Must match an alias defined in the
collaborator_identifier_aliasessection of the collaboration specification, and the collaborator must be listed in theactivation_destinationssection.segment_nameUnique segment name for this activation (maximum 255 characters). Used to identify and track activation results. Must follow Snowflake identifier rules.