Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

Users want to create dynamic pipelines for a greater reusability and ease of operations. This guide walks users through on how to create a dynamic pipeline to use for MERGE use-cases. For context on dynamic pipelines, please refer to this article Dynamic pipelines.

Background

Data Fusion provides BQ Execute action that can be used to execute MERGE queries. To create a fully dynamic MERGE queries, there are different aspects that needs need to be parameterized. As an For example:

  • Merge Query

  • Dataset Name

  • Source Table

  • Target Table

  • Join Keys

  • Fields

...

2. Construct the merge query using parameters:

Code Block
MERGE ${dataset}.${target_table} A
USING ${dataset}.${source_table} H
ON A.${join_key} = H.${join_key}
WHEN NOT MATCHED THEN
INSERT (${fields})
VALUES (${fields})

3. Pass in the parameters required during runtime:

...

Page Properties
hiddentrue

Related issues