Skip to content

Commit

Permalink
feat: remove parentheses of mv table and view (#45)
Browse files Browse the repository at this point in the history
  • Loading branch information
chenzl25 authored May 7, 2024
1 parent 126122f commit f58af57
Show file tree
Hide file tree
Showing 4 changed files with 10 additions and 13 deletions.
2 changes: 1 addition & 1 deletion dbt/adapters/risingwave/__version__.py
Original file line number Diff line number Diff line change
@@ -1 +1 @@
version = "1.7.3"
version = "1.7.4"
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
2 changes: 1 addition & 1 deletion setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@

package_name = "dbt-risingwave"
# make sure this always matches dbt/adapters/{adapter}/__version__.py
package_version = "1.7.3"
package_version = "1.7.4"
description = """The RisingWave adapter plugin for dbt"""

with open(os.path.join(os.path.dirname(__file__), "README.md")) as f:
Expand Down

0 comments on commit f58af57

Please sign in to comment.