Skip to content

Commit

Permalink
Add comment to microbatch macro to explain why we are re-implementing…
Browse files Browse the repository at this point in the history
… delete+insert
  • Loading branch information
QMalcolm committed Oct 2, 2024
1 parent 2f557ab commit db3d8e3
Showing 1 changed file with 6 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -67,6 +67,12 @@
{% endmacro %}

{% macro redshift__get_incremental_microbatch_sql(arg_dict) %}
{#-
Technically this function could just call out to the default implementation of delete_insert.
However, the default implementation requires a unique_id, which we actually do not want or
need. Thus we re-implement delete insert here without the unique_id requirement
-#}

{%- set target = arg_dict["target_relation"] -%}
{%- set source = arg_dict["temp_relation"] -%}
{%- set dest_columns = arg_dict["dest_columns"] -%}
Expand Down

0 comments on commit db3d8e3

Please sign in to comment.