Skip to content

Commit

Permalink
Remove unused invalid_insert_overwrite_delta_msg variable (#963)
Browse files Browse the repository at this point in the history
* Remove `invalid_insert_overwrite_delta_msg` message

* Changelog entry
  • Loading branch information
dbeatty10 authored Dec 14, 2023
1 parent ffc24ba commit f774bcb
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 6 deletions.
6 changes: 6 additions & 0 deletions .changes/unreleased/Under the Hood-20231214-134728.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
kind: Under the Hood
body: Remove unused `invalid_insert_overwrite_delta_msg` message
time: 2023-12-14T13:47:28.444107-07:00
custom:
Author: dbeatty10
Issue: "962"
Original file line number Diff line number Diff line change
Expand Up @@ -29,17 +29,12 @@
You can only choose this strategy when file_format is set to 'delta' or 'iceberg' or 'hudi'
{%- endset %}

{% set invalid_insert_overwrite_delta_msg -%}
Invalid incremental strategy provided: {{ raw_strategy }}
You cannot use this strategy when file_format is set to 'delta' or 'iceberg'
Use the 'append' or 'merge' strategy instead
{%- endset %}

{% set invalid_insert_overwrite_endpoint_msg -%}
Invalid incremental strategy provided: {{ raw_strategy }}
You cannot use this strategy when connecting via endpoint
Use the 'append' or 'merge' strategy instead
{%- endset %}

{% if raw_strategy not in ['append', 'merge', 'insert_overwrite'] %}
{% do exceptions.raise_compiler_error(invalid_strategy_msg) %}
{%-else %}
Expand Down

0 comments on commit f774bcb

Please sign in to comment.