Skip to main content
Skip table of contents

target_entity_attribute_list_with_transform_cast_exttable_parquet

Target database: Snowflake

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.


See also:


Usage

VARIABLE
<target_entity_attribute_list_with_transform_cast_exttable_parquet>

Notes

Supported in all loads.


Examples

Variable used in an OVERRIDE load step

Given mapping:

Target entity: publish.F_RATECODE

Source entity: src.SOURCE

source attributes

Formula

Target attribute

attribute_A

attribute_A

attribute_B

attribute_B

attribute_C

attribute_C

Environment variable: <your_stage> as RATECODE_STAGE

PRE load step in F_RATECODE entity:

SQL
CREATE OR REPLACE EXTERNAL TABLE <target_schema>.<target_entity_name>_EXT
    ( <target_entity_attribute_list_with_transform_cast_exttable_parquet> )
  WITH LOCATION = @<your_stage>
  REFRESH_ON_CREATE =  TRUE
  FILE_FORMAT=(TYPE=PARQUET);

Load executed in the target database Snowflake:

SQL
CREATE OR REPLACE EXTERNAL TABLE publish.F_RATECODE_EXT
    ( attribute_A TEXT AS (CAST(GET($1, 'attribute_A') AS TEXT))
    , attribute_B TEXT AS (CAST(GET($1, 'attribute_B') AS TEXT))
    , attribute_C TEXT AS (CAST(GET($1, 'attribute_C') AS TEXT)) )
  WITH LOCATION = @RATECODE_STAGE
  REFRESH_ON_CREATE =  TRUE
  FILE_FORMAT=(TYPE=PARQUET);

JavaScript errors detected

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

If this problem persists, please contact our support.