Skip to content

Commit c6f7e3a

Browse files
authored
Merge pull request #140 from oracle/dev/v1.7.4
v1.7.4 changes
2 parents b616c26 + ae18d7e commit c6f7e3a

File tree

8 files changed

+15
-69
lines changed

8 files changed

+15
-69
lines changed

.github/workflows/oracle-xe-adapter-tests.yml

Lines changed: 0 additions & 19 deletions
Original file line numberDiff line numberDiff line change
@@ -56,25 +56,6 @@ jobs:
5656
run: |
5757
create-pem-from-p12 --help
5858
59-
- name: Run adapter tests - ORA_PYTHON_DRIVER_TYPE => CX
60-
run: |
61-
pytest -v
62-
env:
63-
ORA_PYTHON_DRIVER_TYPE: CX
64-
DBT_ORACLE_USER: DBT_TEST
65-
DBT_ORACLE_HOST: localhost
66-
DBT_ORACLE_PORT: 1521
67-
DBT_ORACLE_SCHEMA: DBT_TEST
68-
DBT_ORACLE_PASSWORD: ${{ secrets.DBT_ORACLE_PASSWORD }}
69-
DBT_ORACLE_DATABASE: XEPDB1
70-
DBT_ORACLE_SERVICE: XEPDB1
71-
DBT_ORACLE_PROTOCOL: tcp
72-
LD_LIBRARY_PATH: /opt/oracle/instantclient_21_6
73-
TNS_ADMIN: /opt/tns_admin
74-
DBT_TEST_USER_1: DBT_TEST_USER_1
75-
DBT_TEST_USER_2: DBT_TEST_USER_2
76-
DBT_TEST_USER_3: DBT_TEST_USER_3
77-
7859
- name: Run adapter tests - ORA_PYTHON_DRIVER_TYPE => THICK
7960
run: |
8061
pytest -v

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.7.3
2+
VERSION=1.7.4
33
PROJ_DIR?=$(shell pwd)
44
VENV_DIR?=${PROJ_DIR}/.bldenv
55
BUILD_DIR=${PROJ_DIR}/build

THIRD_PARTY_LICENSES.txt

Lines changed: 0 additions & 38 deletions
Original file line numberDiff line numberDiff line change
@@ -1,44 +1,6 @@
11
Third Party Dependencies:
22
=========================
33

4-
cx-Oracle
5-
===============
6-
LICENSE AGREEMENT FOR CX_ORACLE
7-
8-
Copyright 2016, 2018, Oracle and/or its affiliates. All rights reserved.
9-
10-
Portions Copyright 2007-2015, Anthony Tuininga. All rights reserved.
11-
12-
Portions Copyright 2001-2007, Computronix (Canada) Ltd., Edmonton, Alberta,
13-
Canada. All rights reserved.
14-
15-
Redistribution and use in source and binary forms, with or without
16-
modification, are permitted provided that the following conditions are met:
17-
18-
1. Redistributions of source code must retain the above copyright notice, this
19-
list of conditions, and the disclaimer that follows.
20-
21-
2. Redistributions in binary form must reproduce the above copyright notice,
22-
this list of conditions, and the following disclaimer in the documentation
23-
and/or other materials provided with the distribution.
24-
25-
3. Neither the names of the copyright holders nor the names of any contributors
26-
may be used to endorse or promote products derived from this software
27-
without specific prior written permission.
28-
29-
DISCLAIMER: THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
30-
*AS IS* AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO,
31-
THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
32-
ARE DISCLAIMED. IN NO EVENT SHALL THE REGENTS OR CONTRIBUTORS BE LIABLE FOR ANY
33-
DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES
34-
(INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES;
35-
LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON
36-
ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
37-
(INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS
38-
SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
39-
40-
Computronix is a registered trademark of Computronix (Canada) Ltd.
41-
424
dataclasses
435
===============
446

dbt/adapters/oracle/__version__.py

Lines changed: 1 addition & 1 deletion
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.10"
17+
version = "1.7.11"

dbt/adapters/oracle/connection_helper.py

Lines changed: 8 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -104,16 +104,22 @@ class OracleDriverType(str, enum.Enum):
104104
if ORA_PYTHON_DRIVER_TYPE == OracleDriverType.CX_ORACLE:
105105
logger.info("Running in cx mode")
106106
description = (
107-
f"cx_oracle is no longer maintained, use python-oracledb"
107+
f"cx_oracle is no longer supported, use python-oracledb"
108108
f"\n\nTo switch to python-oracledb set the environment variable ORA_PYTHON_DRIVER_TYPE=thin "
109109
f"\n\nStarting with dbt-oracle version 1.7, default value of ORA_PYTHON_DRIVER_TYPE is thin"
110+
f"\n\ncx_oracle is removed from dependencies list of dbt-oracle"
111+
f"\n\nIf you need to use dbt-oracle in CX mode, you can install it using the command: pip install cx_Oracle"
110112
f"\n\nRead the guideline here: "
111113
f"https://docs.getdbt.com/reference/warehouse-setups/oracle-setup#configure-the-python-driver-mode"
112114
f"\n\nDocumentation for python-oracledb can be found here: "
113115
f"https://oracle.github.io/python-oracledb/"
114116
)
115117
logger.warning(warning_tag(red(description)))
116-
import cx_Oracle as oracledb
118+
try:
119+
import cx_Oracle as oracledb
120+
except ModuleNotFoundError:
121+
logger.warning(yellow("Please install cx_Oracle using command: pip install cx_Oracle"))
122+
raise
117123
elif ORA_PYTHON_DRIVER_TYPE == OracleDriverType.THICK:
118124
import oracledb
119125
logger.info("Running in thick mode")

requirements.txt

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,2 @@
11
dbt-core~=1.7,<1.8
2-
cx_Oracle==8.3.0
3-
oracledb==2.1.0
2+
oracledb==2.1.2

setup.cfg

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
[metadata]
22
name = dbt-oracle
3-
version = 1.7.3
3+
version = 1.7.4
44
description = dbt (data build tool) adapter for Oracle Autonomous Database
55
long_description = file: README.md
66
long_description_content_type = text/markdown
@@ -34,8 +34,7 @@ packages = find_namespace:
3434
include_package_data = True
3535
install_requires =
3636
dbt-core~=1.7,<1.8
37-
cx_Oracle==8.3.0
38-
oracledb==2.1.0
37+
oracledb==2.1.2
3938
test_suite=tests
4039
test_requires =
4140
dbt-tests-adapter~=1.7,<1.8

setup.py

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -41,8 +41,7 @@
4141

4242
requirements = [
4343
"dbt-core~=1.7,<1.8",
44-
"cx_Oracle==8.3.0",
45-
"oracledb==2.1.0"
44+
"oracledb==2.1.2"
4645
]
4746

4847
test_requirements = [
@@ -60,7 +59,7 @@
6059

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

63-
VERSION = '1.7.3'
62+
VERSION = '1.7.4'
6463
setup(
6564
author="Oracle",
6665
python_requires='>=3.8',

0 commit comments

Comments
 (0)