Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion Makefile
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
# Configuration variables
VERSION=1.5.3
VERSION=1.5.4
PROJ_DIR?=$(shell pwd)
VENV_DIR?=${PROJ_DIR}/.bldenv
BUILD_DIR=${PROJ_DIR}/build
Expand Down
2 changes: 1 addition & 1 deletion dbt/adapters/oracle/__version__.py
Original file line number Diff line number Diff line change
Expand Up @@ -14,4 +14,4 @@
See the License for the specific language governing permissions and
limitations under the License.
"""
version = "1.5.6"
version = "1.5.9"
11 changes: 9 additions & 2 deletions dbt/adapters/oracle/connections.py
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,7 @@
See the License for the specific language governing permissions and
limitations under the License.
"""
import json
from typing import List, Optional, Tuple, Any, Dict, Union
from contextlib import contextmanager
from dataclasses import dataclass, field
Expand Down Expand Up @@ -219,8 +220,14 @@ def open(cls, connection):
try:
handle = oracledb.connect(**conn_config)
# client_identifier and module are saved in corresponding columns in v$session
handle.module = f'dbt-{dbt_version}'
handle.client_identifier = f'dbt-oracle-client-{uuid.uuid4()}'
action = "dbt run"
client_identifier = f'dbt-oracle-client-{uuid.uuid4()}'
module = f'dbt-{dbt_version}'
client_info = {"action": action, "client_identifier": client_identifier, "module": module}
logger.info(f"Session info :{json.dumps(client_info)}")
handle.module = module
handle.client_identifier = client_identifier
handle.action = action
connection.handle = handle
connection.state = 'open'
except oracledb.DatabaseError as e:
Expand Down
2 changes: 1 addition & 1 deletion requirements.txt
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
dbt-core~=1.5,<1.6
cx_Oracle==8.3.0
oracledb==1.4.1
oracledb==1.4.2

4 changes: 2 additions & 2 deletions setup.cfg
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[metadata]
name = dbt-oracle
version = 1.5.3
version = 1.5.4
description = dbt (data build tool) adapter for the Oracle database
long_description = file: README.md
long_description_content_type = text/markdown
Expand Down Expand Up @@ -35,7 +35,7 @@ include_package_data = True
install_requires =
dbt-core~=1.5,<1.6
cx_Oracle==8.3.0
oracledb==1.4.1
oracledb==1.4.2
test_suite=tests
test_requires =
dbt-tests-adapter~=1.5,<1.6
Expand Down
4 changes: 2 additions & 2 deletions setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@
requirements = [
"dbt-core~=1.5,<1.6",
"cx_Oracle==8.3.0",
"oracledb==1.4.1"
"oracledb==1.4.2"
]

test_requirements = [
Expand All @@ -52,7 +52,7 @@

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

VERSION = '1.5.3'
VERSION = '1.5.4'
setup(
author="Oracle",
python_requires='>=3.7.2',
Expand Down