Skip to content

Commit 64e61b0

Browse files
authored
Merge pull request #66 from oracle/fixes/v1.3.2
Fixes and features for v1.3.2
2 parents ddf9969 + cbba6d3 commit 64e61b0

File tree

5 files changed

+9
-5
lines changed

5 files changed

+9
-5
lines changed

Makefile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
# Configuration variables
2-
VERSION=1.3.1
2+
VERSION=1.3.2
33
PROJ_DIR?=$(shell pwd)
44
VENV_DIR?=${PROJ_DIR}/.bldenv
55
BUILD_DIR=${PROJ_DIR}/build

dbt/include/oracle/macros/adapters.sql

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -100,19 +100,22 @@
100100
{% if temporary -%} on commit preserve rows {%- endif %}
101101
as
102102
{{ sql }}
103-
104103
{%- endmacro %}
105104

106105

107106
{% macro oracle__create_table_as(temporary, relation, sql) -%}
108107
{%- set sql_header = config.get('sql_header', none) -%}
108+
{%- set parallel = config.get('parallel', none) -%}
109+
{%- set compression_clause = config.get('table_compression_clause', none) -%}
109110

110111
{{ sql_header if sql_header is not none }}
111112

112113
create {% if temporary -%}
113114
global temporary
114115
{%- endif %} table {{ relation.include(schema=(not temporary)) }}
115116
{% if temporary -%} on commit preserve rows {%- endif %}
117+
{% if parallel %} parallel {{ parallel }}{% endif %}
118+
{% if compression_clause %} {{ compression_clause }} {% endif %}
116119
as
117120
{{ sql }}
118121

dbt/include/oracle/macros/materializations/table/table.sql

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -17,8 +17,8 @@
1717
{% materialization table, adapter='oracle' %}
1818
{% set identifier = model['alias'] %}
1919
{% set grant_config = config.get('grants') %}
20-
{% set tmp_identifier = model['name'] + '__dbt_tmp' %}
21-
{% set backup_identifier = model['name'] + '__dbt_backup' %}
20+
{% set tmp_identifier = model['alias'] + '__dbt_tmp' %}
21+
{% set backup_identifier = model['alias'] + '__dbt_backup' %}
2222
{% set old_relation = adapter.get_relation(database=database, schema=schema, identifier=identifier) %}
2323
{% set target_relation = api.Relation.create(identifier=identifier,
2424
schema=schema,

dbt/include/oracle/macros/materializations/view/view.sql

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@
1818

1919
{%- set identifier = model['alias'] -%}
2020
{%- set grant_config = config.get('grants') -%}
21-
{%- set backup_identifier = model['name'] + '__dbt_backup' -%}
21+
{%- set backup_identifier = model['alias'] + '__dbt_backup' -%}
2222

2323
{%- set old_relation = adapter.get_relation(database=database, schema=schema, identifier=identifier) -%}
2424
{%- set target_relation = api.Relation.create(identifier=identifier, schema=schema, database=database,

dbt_adbs_test_project/models/internet_sales_channel_customers.sql

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,7 @@
1313
See the License for the specific language governing permissions and
1414
limitations under the License.
1515
#}
16+
{{config(materialized='table', parallel=4, table_compression_clause='COLUMN STORE COMPRESS FOR QUERY')}}
1617
select c.cust_id, c.cust_first_name, c.cust_last_name, t.country_iso_code, t.country_name, t.country_region
1718
from {{ ref('sales_internet_channel') }} s, {{ source('sh_database', 'countries') }} t, {{ source('sh_database', 'customers') }} c
1819
WHERE s.cust_id = c.cust_id

0 commit comments

Comments
 (0)