From 93903fc30a74fd06d5fdb3c9687af6d52b1f12a4 Mon Sep 17 00:00:00 2001 From: Martin Schweyen Date: Fri, 17 Sep 2021 15:27:03 +0200 Subject: [PATCH] Fix syntax error in snapshot.sql Thanks a lot for your work creating this adapter. This fix is required to make the snapshot mechanismn working on Oracle. Oracle does not support the keyword "as" to define table aliases. --- .../oracle/macros/materializations/snapshot/snapshot.sql | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/dbt/include/oracle/macros/materializations/snapshot/snapshot.sql b/dbt/include/oracle/macros/materializations/snapshot/snapshot.sql index ddea669..4ad06fa 100644 --- a/dbt/include/oracle/macros/materializations/snapshot/snapshot.sql +++ b/dbt/include/oracle/macros/materializations/snapshot/snapshot.sql @@ -123,7 +123,7 @@ snapshotted_data.dbt_scd_id from snapshotted_data - left join deletes_source_data as source_data on snapshotted_data.dbt_unique_key = source_data.dbt_unique_key + left join deletes_source_data source_data on snapshotted_data.dbt_unique_key = source_data.dbt_unique_key where source_data.dbt_unique_key is null ) {%- endif %}