File tree Expand file tree Collapse file tree 14 files changed +34
-18
lines changed
materializations/snapshot Expand file tree Collapse file tree 14 files changed +34
-18
lines changed Original file line number Diff line number Diff line change 1
1
# Configuration variables
2
- VERSION =1.8.0
2
+ VERSION =1.8.1
3
3
PROJ_DIR? =$(shell pwd)
4
4
VENV_DIR? =${PROJ_DIR}/.bldenv
5
5
BUILD_DIR =${PROJ_DIR}/build
Original file line number Diff line number Diff line change 14
14
See the License for the specific language governing permissions and
15
15
limitations under the License.
16
16
"""
17
- version = "1.8.0 "
17
+ version = "1.8.1 "
Original file line number Diff line number Diff line change 42
42
{%- endif - %}
43
43
{%- if col[' data_type' ] | lower == ' clob' - %}
44
44
empty_clob() as {{ col[' name' ] }}{{ " , " if not loop .last }}
45
+ {%- elif col[' data_type' ] | lower == ' blob' - %}
46
+ empty_blob() as {{ col[' name' ] }}{{ " , " if not loop .last }}
45
47
{%- else - %}
46
48
cast(null as {{ col[' data_type' ] }}) as {{ col[' name' ] }}{{ " , " if not loop .last }}
47
49
{%- endif - %}
63
65
) model_subq
64
66
{%- endmacro %}
65
67
66
- {% macro oracle__create_schema(relation, schema_name ) - %}
68
+ {% macro oracle__create_schema(relation) - %}
67
69
{% if relation .database - %}
68
70
{{ adapter .verify_database (relation .database ) }}
69
71
{%- endif - %}
Original file line number Diff line number Diff line change 215
215
{% endif %}
216
216
217
217
{% if not adapter .check_schema_exists (model_database, model .schema ) %}
218
- {% do create_schema(model_database, model .schema ) %}
218
+ {% do create_schema(model .schema ) %}
219
219
{% endif %}
220
220
221
221
{% set target_relation_exists, target_relation = get_or_create_relation(
Original file line number Diff line number Diff line change 1
1
{#
2
- Copyright (c) 2023 , Oracle and / or its affiliates.
2
+ Copyright (c) 2024 , Oracle and / or its affiliates.
3
3
4
4
Licensed under the Apache License, Version 2 .0 (the " License" );
5
5
you may not use this file except in compliance with the License.
21
21
)
22
22
fetch first {{ limit }} rows only
23
23
{% endmacro %}
24
+
25
+
26
+ {% macro oracle__get_limit_sql(sql, limit ) %}
27
+ {{ compiled_code }}
28
+ {% if limit is not none %}
29
+ fetch first {{ limit }} rows only
30
+ {%- endif - %}
31
+ {% endmacro %}
Original file line number Diff line number Diff line change 21
21
kafka_message :
22
22
+column_types :
23
23
message : CLOB
24
+ blob_message : BLOB
24
25
seed_with_empty_col :
25
26
+column_types :
26
27
id : number
Original file line number Diff line number Diff line change 1
- select * from {{ ref(' kafka_message' ) }}
1
+ select * from {{ ref(' kafka_message' ) }}
Original file line number Diff line number Diff line change 13
13
See the License for the specific language governing permissions and
14
14
limitations under the License.
15
15
# }
16
- {{ config(materialized= ' table' )}}
16
+ {{ config(materialized= ' table' , grants = { ' select ' : [ ' dbt_test_1 ' ]} )}}
17
17
with all_promo_costs as (
18
18
select * from {{ source(' sh_database' , ' promotions' ) }}
19
19
)
Original file line number Diff line number Diff line change @@ -43,6 +43,11 @@ models:
43
43
data_type : CLOB
44
44
constraints :
45
45
- type : not_null
46
+ - name : blob_message
47
+ description : Kafka message
48
+ data_type : BLOB
49
+ constraints :
50
+ - type : not_null
46
51
47
52
48
53
- name : people
Original file line number Diff line number Diff line change @@ -9,7 +9,7 @@ dbt_test:
9
9
host : " {{ env_var('DBT_ORACLE_HOST') }}"
10
10
port : 1522
11
11
service : " {{ env_var('DBT_ORACLE_SERVICE') }}"
12
- # database: "{{ env_var('DBT_ORACLE_DATABASE') }}"
12
+ database : " {{ env_var('DBT_ORACLE_DATABASE') }}"
13
13
schema : " {{ env_var('DBT_ORACLE_SCHEMA') }}"
14
14
oml_cloud_service_url : " {{ env_var('DBT_ORACLE_OML_CLOUD_SERVICE_URL')}}"
15
15
session_info :
Original file line number Diff line number Diff line change 1
- message
2
- Jack-Hunter
3
- Jack-Hunter
4
- Jack-HunterJackHunter
5
- Jack-Hunter
1
+ message,blob_message
2
+ Jack-Hunter,1234
3
+ Jack-Hunter,123124
4
+ Jack-HunterJackHunter,123123
5
+ Jack-Hunter,123143
Original file line number Diff line number Diff line change 1
1
dbt-common >= 1.1.0 ,< 2.0
2
2
dbt-adapters >= 1.2.1 ,< 2.0
3
3
dbt-core >= 1.8.1 ,< 2.0
4
- oracledb == 2.2.1
4
+ oracledb == 2.3.0
Original file line number Diff line number Diff line change 1
1
[metadata]
2
2
name = dbt-oracle
3
- version = 1.8.0
3
+ version = 1.8.1
4
4
description = dbt (data build tool) adapter for Oracle Autonomous Database
5
5
long_description = file: README.md
6
6
long_description_content_type = text/markdown
@@ -36,7 +36,7 @@ install_requires =
36
36
dbt-common>=1.1.0,<2.0
37
37
dbt-adapters>=1.2.1,<2.0
38
38
dbt-core~=1.8,<1.9
39
- oracledb ==2.2.1
39
+ oracledb ==2.3.0
40
40
test_suite =tests
41
41
test_requires =
42
42
dbt-tests-adapter~=1.8,<1.9
Original file line number Diff line number Diff line change 43
43
"dbt-common>=1.1.0,<2.0" ,
44
44
"dbt-adapters>=1.2.1,<2.0" ,
45
45
"dbt-core~=1.8,<1.9" ,
46
- "oracledb==2.2.1 "
46
+ "oracledb==2.3.0 "
47
47
]
48
48
49
49
test_requirements = [
61
61
62
62
url = 'https://github.com/oracle/dbt-oracle'
63
63
64
- VERSION = '1.8.0 '
64
+ VERSION = '1.8.1 '
65
65
setup (
66
66
author = "Oracle" ,
67
67
python_requires = '>=3.8' ,
You can’t perform that action at this time.
0 commit comments