Skip to main content
Skip table of contents

Variables

Agile Data Engine supports predefined and user-defined variables to enable customization in various different use cases.


See also:


Usage

Variables are referred to by encapsulating the variable name in angle brackets, for example:

VARIABLE
<variable_name>

Notes

If environment variables are used in loads and changes are made to the environment variables, the loads must also be redeployed for the changes to take effect.


Variable types

Level

Type

Example

Scope

0

Predefined environment level variables

environment_name

Environment

1

Environment variables in ADE main configuration (Private Edition)

Environment

2

Environment variables in CONFIG_ENVIRONMENT_VARIABLES

Environment

3

Predefined schedule level variables

scheduling_name

Workflow

4

Schedule level variables in a configuration package

Workflow

5

Predefined load level variables

target_db_name

Load


Predefined variables

See list of predefined variables below. Depending on the variable, it can be used in:

  • Deployment: Control parts in deployment procedures such as grants.

  • Loads: Use variables in load step definitions.

Variable

Deployment

Loads

Description

copy_options

x

Resolved as the Snowflake copy options in file load execution.

dag_generation_mode

x

x

Resolved as the DAG generation mode name in load execution.

data_source

x

Synonymous to storage_integration, resolved as the storage integration (Snowflake) or external data source (Azure SQL Database) in file load execution.

DISABLE_SRC_SYS_NAME_IN_FILE_NAME

x

x

Used for backward compatibility only.

env_short_name

x

x

Deprecated. Alias to environment_name. Use environment_name instead.

environment_name

x

x

Resolved as the environment name in deployments and in load execution.

file_format

x

Resolved as the file format options in file load execution.

from_file

x

Resolved as the source file path in file load execution.

from_file_list

x

Resolved as a comma-separated source file list in file load execution.

from_path

x

Resolved as the source path(s) in file load execution.

load_start_timemillis

x

Resolved as the load start Unix timestamp in milliseconds in load execution.

loadablerunids

x

Resolved as a comma-separated list of loadable batch ids in load execution. Used with the Run ID Logic.

loadname

x

Resolved as the load name in load execution.

manifestrunid

x

Populated with Run ID from manifest level in file load execution time.

packagename

x

Resolved as the package name in load execution.

packageversion

x

Resolved as the package version in load execution.

scheduling_name

x

x

Resolved as the schedule name in load execution.

source_credentials

x

Resolved as data source credentials in file load execution.

source_encryption

x

Resolved as encryption settings in file load execution.

source_entity_attribute_list

x

Resolves as comma-separated list of first mapped source entity attributes

source_entity_name

x

Resolved as the source entity name in load execution.

source_entity_schema

x

Resolved as the source entity schema in load execution.

source_system_name

x

Resolves as the source system name in load execution. Source system is carried only with SOURCE entity types and in case both mapped entities are of type SOURCE, target entity source system will be used

sourcebatchidattr (deprecated)

x

Deprecated. Resolved as the data source batch id attribute name in load execution. Used with the Run ID Logic.

sourcerunidattr

x

Resolved as the data source run id attribute name in load execution. Used with the Run ID Logic.

stagingbatchidattr (deprecated)

x

Deprecated. Resolved as the staging table batch id attribute name in load execution. Used with the Run ID Logic.

storage_integration

x

Resolved as the storage integration (Snowflake) or as the external data source (Azure SQL Database).

target_db_name

x

Resolved as the target database name in load execution.

target_entity_attribute_list

x

Resolved as a comma-separated list of target entity attributes in file load execution.

target_entity_attribute_list_with_transform

x

Resolves as comma-separated list of attribute mappings with their transformations

target_entity_attribute_list_with_transform_cast_and_names

x

Resolves as comma-separated list of attribute mappings with their transformations and 1-1 mappings without transformation will be cast to the target attribute physical datatype with the target attribute name

target_entity_attribute_list_with_transform_cast_and_positions

x

Resolves as comma-separated list of attribute mappings with their transformations. For Azure databases resolves only 1-1 mappings, not supported in Google BigQuery, Amazon Redshift and PostgreSQL.

target_entity_attribute_list_with_transform_cast_exttable

x

Resolves as full target entity attribute list having the transformations based on the first SOURCE entity mapping. One-to-one mappings without transformation formula will be translated with table creation column definition syntax.

target_entity_attribute_list_with_transform_cast_exttable_parquet

x

Resolves as full target entity attribute list having the transformations based on the first SOURCE entity mapping. One-to-one mappings without transformation formula will be translated as single-level parquet column references with datatype for external table creation context.

target_entity_attribute_list_with_transform_cast_parquet

x

Resolves as full target entity attribute list having the transformations based on the first SOURCE entity mapping. One-to-one mappings without transformation formula will be translated as single-level parquet column references with datatype in select context.

target_entity_logical_name

x

Resolved as the target entity logical name in load execution.

target_entity_name

x

Resolved as the target entity name in load execution.

target_schema

x

Resolved as the schema of the target entity in load execution.

targetbatchid (deprecated)

x

Deprecated. Resolved as a new target batch id value in load execution. Used with the Run ID Logic.

targetbatchidattr (deprecated)

x

Deprecated. Resolved as the target table batch id attribute name in load execution. Used with the Run ID Logic.

targetrunid

x

Resolved as a new target run id value in load execution. Used with the Run ID Logic.

targetrunidattr

x

Resolved as the target table run id attribute name in load execution. Used with the Run ID Logic.

timemillis

x

Resolved as the current Unix timestamp in milliseconds in load execution.

JavaScript errors detected

Please note, these errors can depend on your browser setup.

If this problem persists, please contact our support.