Skip to content

Commit

Permalink
remove parentheses of mv table and view
Browse files Browse the repository at this point in the history
  • Loading branch information
chenzl25 committed May 7, 2024
1 parent 126122f commit bd35b5a
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 11 deletions.
17 changes: 7 additions & 10 deletions dbt/include/risingwave/macros/adapters.sql
Original file line number Diff line number Diff line change
Expand Up @@ -80,9 +80,8 @@
{% if contract_config.enforced %}
{{ get_assert_columns_equivalent(sql) }}
{%- endif %}
as (
{{ sql }}
);
as {{ sql }}
;
{%- endmacro %}

{% macro risingwave__create_table_as(relation, sql) -%}
Expand All @@ -91,9 +90,8 @@
{% if contract_config.enforced %}
{{ get_assert_columns_equivalent(sql) }}
{%- endif %}
as (
{{ sql }}
);
as {{ sql }}
;
{%- endmacro %}

{% macro risingwave__create_materialized_view_as(relation, sql) -%}
Expand All @@ -102,12 +100,11 @@
{% if contract_config.enforced %}
{{ get_assert_columns_equivalent(sql) }}
{%- endif %}
as (
{{ sql }}
);
as {{ sql }}
;
{%- endmacro %}

{% macro rising_wave__create_sink(relation, sql) -%}
{% macro risingwave__create_sink(relation, sql) -%}
{%- set _format_parameters = config.get("format_parameters") -%}
{%- set data_format = config.get("data_format") -%}
{%- set data_encode = config.get("data_encode") -%}
Expand Down
2 changes: 1 addition & 1 deletion dbt/include/risingwave/macros/materializations/sink.sql
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@
{%- set connector = config.get("connector") -%}
{% call statement("main") -%}
{% if connector %}
{{ rising_wave__create_sink(target_relation, sql) }}
{{ risingwave__create_sink(target_relation, sql) }}
{% else %}
{{ risingwave__run_sql(sql) }}
{% endif %}
Expand Down

0 comments on commit bd35b5a

Please sign in to comment.