Skip to content

Commit 4d2971e

Browse files
authored
Merge pull request #148 from oracle/1.7-backports
1.7 backports
2 parents 5eade6e + bf5e717 commit 4d2971e

File tree

7 files changed

+12
-5
lines changed

7 files changed

+12
-5
lines changed

Makefile

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
# Configuration variables
2-
VERSION=1.7.6
2+
VERSION=1.7.7
33
PROJ_DIR?=$(shell pwd)
44
VENV_DIR?=${PROJ_DIR}/.bldenv
55
BUILD_DIR=${PROJ_DIR}/build

dbt/adapters/oracle/__version__.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -14,4 +14,4 @@
1414
See the License for the specific language governing permissions and
1515
limitations under the License.
1616
"""
17-
version = "1.7.16"
17+
version = "1.7.17"

dbt/include/oracle/macros/adapters.sql

+4
Original file line numberDiff line numberDiff line change
@@ -260,8 +260,12 @@
260260

261261
{% macro oracle__alter_relation_comment(relation, comment) %}
262262
{% set escaped_comment = oracle_escape_comment(comment) %}
263+
{% if relation.type == 'materialized_view' %}
264+
comment on materialized view {{ relation }} is {{ escaped_comment }}
265+
{% else %}
263266
{# "comment on table" even for views #}
264267
comment on table {{ relation }} is {{ escaped_comment }}
268+
{% endif %}
265269
{% endmacro %}
266270

267271
{% macro oracle__persist_docs(relation, model, for_relation, for_columns) -%}

dbt_adbs_test_project/models/sales_internet_mv.sql

+1-1
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,6 @@
1313
See the License for the specific language governing permissions and
1414
limitations under the License.
1515
#}
16-
{{ config(materialized='materialized_view')}}
16+
{{ config(materialized='materialized_view', persist_docs={"relation": true, "columns": true}) }}
1717
select * from {{ source('sh_database', 'sales') }}
1818
where channel_id = 5

dbt_adbs_test_project/models/schema.yml

+3
Original file line numberDiff line numberDiff line change
@@ -22,6 +22,9 @@ sources:
2222
- name: costs
2323

2424
models:
25+
- name: sales_internet_mv
26+
description: Test comment for Materialized View
27+
2528
- name: kafka
2629
description: kafka_description
2730
config:

setup.cfg

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
[metadata]
22
name = dbt-oracle
3-
version = 1.7.6
3+
version = 1.7.7
44
description = dbt (data build tool) adapter for Oracle Autonomous Database
55
long_description = file: README.md
66
long_description_content_type = text/markdown

setup.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -59,7 +59,7 @@
5959

6060
url = 'https://github.com/oracle/dbt-oracle'
6161

62-
VERSION = '1.7.6'
62+
VERSION = '1.7.7'
6363
setup(
6464
author="Oracle",
6565
python_requires='>=3.8',

0 commit comments

Comments
 (0)