Skip to content

Commit

Permalink
Bug fix for udf materialization to cater for no imports being passe…
Browse files Browse the repository at this point in the history
…d in even if an empty array is passed in
  • Loading branch information
jonhopper-dataengineers committed Jan 15, 2025
1 parent 54d6490 commit 3f6e5dc
Show file tree
Hide file tree
Showing 2 changed files with 15 additions and 1 deletion.
9 changes: 9 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,14 @@
# dbt_dataengineers_materializations Changelog

## 0.2.9.2 - User Defined Functions

* Bug fix for `udf` materialization to cater for no imports being passed in even if an empty array is passed in

## 0.2.9.2 - Dependant Tasks

* fixed up enable task dependants to ensure they only run if being executed
* fixed table staging to ensure they only run if being executed

## 0.2.9 - Immutable table

* Added new materialization for `immutable_table` to create a table that is immutable but is part of the dbt flow
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,12 @@
{%- set external_access_integrations_refs = config.get('external_access_integrations_refs', default=[]) %}
{%- set secrets = config.get('secrets', default=none) %}
{%- set handler_name = config.get('handler_name', default=none) -%}
{%- set imports = config.get('imports', default=null) -%}
{%- set imports = config.get('imports', default=none) -%}
{% if imports is not none -%}
{% if imports|length == 0 %}
{% set imports = none %}
{% endif %}
{% endif %}
/* end java / python*/

{%- set null_input_behavior = config.get('null_input_behavior', 'called on null input')%}
Expand Down

0 comments on commit 3f6e5dc

Please sign in to comment.