From a52c5f1e7178213c073f528c4b4deb45102ab718 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E9=BC=8E=E6=98=95?= Date: Thu, 14 Nov 2024 14:51:33 +0800 Subject: [PATCH] =?UTF-8?q?fix(maxcompute):=20=E4=BF=AE=E6=AD=A3=E6=9B=B4?= =?UTF-8?q?=E6=96=B0=E7=89=88=E6=9C=AC=E5=8F=B7=201.8.0-alpha7?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit -将 `rendor()` 方法修正为 `render()` 方法,修复语法错误 --- dbt/adapters/maxcompute/__version__.py | 2 +- dbt/include/maxcompute/macros/adapters.sql | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/dbt/adapters/maxcompute/__version__.py b/dbt/adapters/maxcompute/__version__.py index 3555db7..209d344 100644 --- a/dbt/adapters/maxcompute/__version__.py +++ b/dbt/adapters/maxcompute/__version__.py @@ -1 +1 @@ -version = "1.8.0-alpha6" +version = "1.8.0-alpha7" diff --git a/dbt/include/maxcompute/macros/adapters.sql b/dbt/include/maxcompute/macros/adapters.sql index a432e06..fa90cd0 100644 --- a/dbt/include/maxcompute/macros/adapters.sql +++ b/dbt/include/maxcompute/macros/adapters.sql @@ -11,7 +11,7 @@ dbt docs: https://docs.getdbt.com/docs/contributing/building-a-new-adapter {% macro maxcompute__rename_relation(from_relation, to_relation) -%} {% if from_relation.is_table -%} - ALTER TABLE {{ from_relation.rendor() }} + ALTER TABLE {{ from_relation.render() }} RENAME TO {{ to_relation.identifier }}; {% else -%} ALTER VIEW {{ from_relation.database }}.{{ from_relation.schema }}.{{ from_relation.identifier }}