Skip to content

Commit

Permalink
Fixed error handling and logging
Browse files Browse the repository at this point in the history
  • Loading branch information
moomindani committed Feb 20, 2025
1 parent f69836a commit efb9bd2
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 4 deletions.
3 changes: 0 additions & 3 deletions dbt/include/glue/macros/adapters.sql
Original file line number Diff line number Diff line change
Expand Up @@ -115,9 +115,6 @@

{% macro glue__generate_database_name(custom_database_name=none, node=none) -%}
{%- set default_database = target.schema -%}
{%- if default_database is none or default_database is undefined -%}
{{ exceptions.raise_compiler_error("Target schema is undefined") }}
{%- endif -%}
{{ default_database }}
{%- endmacro %}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@
{# /*-- Set vars --*/ #}
{%- set language = model['language'] -%}
{%- set existing_relation_type = adapter.get_table_type(this) -%}
{%- set identifier = model.get('alias', model.get('name')) -%}
{%- set identifier = model['alias'] -%}
{%- if not identifier -%}
{% do exceptions.raise_compiler_error("Identifier not found in model") %}
{%- endif -%}
Expand Down

0 comments on commit efb9bd2

Please sign in to comment.