Skip to content

Commit

Permalink
Revert "Adding support for Snowflake Secure Views - {{ config(materia…
Browse files Browse the repository at this point in the history
…lized='view',secure=true) }} in Model"

This reverts commit ac1b906.
  • Loading branch information
Carolus-Holman committed Sep 11, 2019
1 parent ac1b906 commit 5b29c19
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 5 deletions.
2 changes: 1 addition & 1 deletion plugins/snowflake/dbt/adapters/snowflake/impl.py
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ class SnowflakeAdapter(SQLAdapter):
ConnectionManager = SnowflakeConnectionManager

AdapterSpecificConfigs = frozenset(
{"transient", "cluster_by", "automatic_clustering","secure"}
{"transient", "cluster_by", "automatic_clustering"}
)

@classmethod
Expand Down
5 changes: 1 addition & 4 deletions plugins/snowflake/dbt/include/snowflake/macros/adapters.sql
Original file line number Diff line number Diff line change
Expand Up @@ -35,10 +35,7 @@
{% endmacro %}

{% macro snowflake__create_view_as(relation, sql) -%}
{%- set secure = config.get('secure', default=false) -%}
create or replace {% if secure -%}
secure
{%- endif %} view {{ relation }} as (
create or replace view {{ relation }} as (
{{ sql }}
);
{% endmacro %}
Expand Down

0 comments on commit 5b29c19

Please sign in to comment.