Skip to main content

SYS.REFLECTION_REFRESH_SETTINGS

Returns the refresh settings for a Reflection, including settings inherited from the datasets that the Reflection depends on.

Syntax
SELECT * FROM TABLE(sys.reflection_refresh_settings('<reflection_id>'))

Parameter

<reflection_id> String

The ID of the Reflection. If you need to find a Reflection ID, see Obtaining Reflection IDs.

Example

Return the settings for a Reflection that depends on multiple datasets
SELECT * FROM TABLE(sys.reflection_refresh_settings('64p1a2eb-2811-3efb-805d-00c428f21079'));
Example of the query result
table_typetable_pathtable_version_contextoverrides_sourcerefresh_methodrefresh_policyrefresh_period_secondsrefresh_schedulenever_expireexpire_after_seconds
DATASETprod.data.usersempty textfalseFULLPERIOD21600empty textfalse10800
DATASETprod.data.views{"type":"BRANCH","value":"main"}trueAUTOLIVE_REFRESH-1empty texttrue-1
DATASETprod.data.statsempty texttrueAUTOSCHEDULE-10 0 8 * * *trueempty text

Columns

note

Irrelevant columns are assigned sentinel values: -1 for numbers and an empty string for text.

ColumnData TypeDescription
table_typevarcharDefines the type of table. Enum: DATASET or EXTERNAL_QUERY
table_pathvarcharIdentifies the path to the dataset or external query source that the Reflection depends on.
table_version_contextvarcharSpecifies the versioning context for datasets, stored in JSON format.
overrides_sourcebooleanIndicates whether settings are inherited from the source (true) or set on the table (false).
refresh_methodvarcharShows the method used for the most recent refresh of the Reflection. Enum: FULL, INCREMENTAL, AUTO
refresh_policyvarcharIdentifies the type of refresh policy. Enum: PERIOD, SCHEDULE, LIVE_REFRESH, NEVER_REFRESH
refresh_period_secondsdoubleSpecifies the time in seconds (truncated from milliseconds) between refreshes.
refresh_schedulevarcharProvides the cron expression (UTC) that defines the refresh schedule for the Reflection.
never_expirebooleanIndicates whether the Reflection never expires (true) or uses the expiration setting (false).
expire_after_secondsdoubleDefines the expiration time in seconds (truncated from milliseconds), after which the system removes the Reflection.