Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions dbt_macros/dune/no-relation-listing.sql
Original file line number Diff line number Diff line change
Expand Up @@ -13,11 +13,11 @@
{%- endmacro %}

{% macro list_schemas(database) -%}
{% do log(target) %}
{%- if (var('no-relation-listing', 'false').lower() == 'true') or (target.profile_name == 'spellbook-local') -%}
{{ return([]) }}
{%- else -%}
{{ return(adapter.dispatch('list_schemas')(database)) }}
{# Workaround for https://github.com/dbt-labs/dbt-adapters/issues/1929 -- drop once fixed. #}
{{ return([]) }}
{%- endif -%}
{%- endmacro %}

Expand Down
2 changes: 1 addition & 1 deletion dbt_macros/dune/schema.sql
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
{%- if target.database == 'dune' -%}
CREATE SCHEMA IF NOT EXISTS {{ relation }}
{%- else -%}
CREATE SCHEMA {{ relation }} WITH (location = 's3a://{{s3_bucket()}}/')
CREATE SCHEMA IF NOT EXISTS {{ relation }} WITH (location = 's3a://{{s3_bucket()}}/')
{%- endif -%}
{% endcall %}
{% endmacro %}
4 changes: 2 additions & 2 deletions dbt_subprojects/tokens/models/_dev/tokens_dev_table.sql
Original file line number Diff line number Diff line change
Expand Up @@ -4,5 +4,5 @@
file_format = 'delta'
) }}

--stamp 1
select 1 as stamp
--stamp 2
select 2 as stamp
4 changes: 2 additions & 2 deletions dbt_subprojects/tokens/models/_dev/tokens_dev_view.sql
Original file line number Diff line number Diff line change
Expand Up @@ -3,5 +3,5 @@
materialized = 'view'
) }}

--stamp 1
select 1 as stamp
--stamp 2
select 2 as stamp
Loading