Skip to main content
Feedback

Data Integration metadata

note

Currently only available in Source to target Rivers.

Data Integration supports custom metadata that describes the data origin. Data Integration metadata currently includes:

NameTypeDescriptionDefault
_rivery_last_updateDatetimeThe time the columns was last updated or inserted (Note: At time of the insert to DB statement)Yes
_rivery_run_idStringThe run ID that updated the columns or inserted itYes
_rivery_river_idStringThe River ID that the column originated fromYes
_rivery_river_nameStringThe River name that the column originated from (Note: The name at the time of the run)No
_rivery_env_idStringThe River environment ID that the column originated fromNo
_rivery_env_nameStringThe River environment name that the column originated fromNo
note

Data Integration metadata cannot include the following characters: ' ` " / If the variable value contains one of those, please replace it.

How to use Data Integration metadata

Source to target Rivers include the following metadata columns in each output table by default:

_rivery_last_update _rivery_run_id _rivery_river_id

note
  • Currently available for Predefined Reports supported API sources and Multi-Table supported Database sources.
  • Any database could be the target.
  • Logic Rivers currently do not support this feature.

To enable this feature, navigate to the target tab and set the "Add Data Integration Metadata" toggle to true (under Additional Options).

Metadata syntax

In each of the corresponding databases, the following statement will be executed for the '_data_integration_last_update' expression:

NameStatementType
Google Big QueryCURRENT_TIMESTAMP()TIMESTAMP
Amazon RedshiftGETDATE()TIMESTAMP
Snowflakecurrent_timestamp()TIMESTAMP
Azure SynapseCURRENT_TIMESTAMPTIMESTAMP
Databrickscurrent_timestamp()TIMESTAMP
Postgresnow()TIMESTAMP

In custom expressions

Data Integration Metadata can also be used in custom expressions for target mapping. When creating a river, simply go to the schema tab and enter any of the supported expressions, followed by any valid name. image.png

As a result, the following metadata will be added to the target table: image.png

On this Page