diff --git a/CHANGELOG.md b/CHANGELOG.md index 080c51e7..f9836f97 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,4 +1,4 @@ -# dbt-dremio 1.4.1 - release TBD +# dbt-dremio 1.4.5 - release March 23, 2023 ## Features @@ -9,16 +9,15 @@ - [#64](https://github.com/dremio/dbt-dremio/issues/64) Add BaseArrayTests and throw exceptions for unsupported Array Macros. - [#117](https://github.com/dremio/dbt-dremio/issues/117) Add support for Query Comment Tests and Python 3.11 -- [#134]https://github.com/dremio/dbt-dremio/issues/134) Add dremio:exact_search_enabled variable that if set to true, replaces usage of ilike with a basic equality in dremio\_\_list_relations_without_caching when reflections are not enabled. -- [#117](https://github.com/dremio/dbt-dremio/issues/117) Add Base Current Timestamps Tests +- [#134](https://github.com/dremio/dbt-dremio/issues/134) Add dremio:exact_search_enabled variable that if set to true, replaces usage of ilike with a basic equality in dremio\_\_list_relations_without_caching when reflections are not enabled. +- [#117](https://github.com/dremio/dbt-dremio/issues/117) Add Base Current Timestamps Tests - [#117](https://github.com/dremio/dbt-dremio/issues/117) Replace deprecated dbt-core exceptions - [#117](https://github.com/dremio/dbt-dremio/issues/117) Add support for changing relation type test ## Dependency -- Upgrade dbt-core to 1.4.1. - -- Upgrade dbt-tests-adapter to 1.4.1. +- Upgrade dbt-core to 1.4.5. +- Upgrade dbt-tests-adapter to 1.4.5. # dbt-dremio 1.3.2 - release February 8, 2023 diff --git a/README.md b/README.md index 0733f6ad..95300f72 100644 --- a/README.md +++ b/README.md @@ -6,20 +6,20 @@ dbt is the T in ELT. Organize, cleanse, denormalize, filter, rename, and pre-aggregate the raw data in your warehouse so that it's ready for analysis. -## dbt-dremio version 1.3.2 +## dbt-dremio version 1.4.5 The `dbt-dremio` package contains all of the code enabling dbt to work with [Dremio](https://www.dremio.com/). For more information on using dbt with Dremio, consult [the docs](https://docs.getdbt.com/reference/warehouse-profiles/dremio-profile). The dbt-dremio package supports both Dremio Cloud and Dremio Software (versions 22.0 and later). -Version 1.3.2 of the dbt-dremio adapter is compatible with dbt-core versions 1.2.0 to 1.3.2. +Version 1.4.5 of the dbt-dremio adapter is compatible with dbt-core versions 1.2.0 to 1.4.5. > Prior to version 1.1.0b, dbt-dremio was created and maintained by [Fabrice Etanchaud](https://github.com/fabrice-etanchaud) on [their GitHub repo](https://github.com/fabrice-etanchaud/dbt-dremio). Code for using Dremio REST APIs was originally authored by [Ryan Murray](https://github.com/rymurr). Contributors in this repo are credited for laying the groundwork and maintaining the adapter till version 1.0.6.5. The dbt-dremio adapter is maintained and distributed by Dremio starting with version 1.1.0b. ## Getting started - [Install dbt-dremio](https://docs.getdbt.com/reference/warehouse-setups/dremio-setup) - - Version 1.3.2 of dbt-dremio requires dbt-core >= 1.2.0 and <=1.3.2. Installing dbt-dremio will automatically upgrade existing dbt-core versions earlier than 1.2.0 to 1.3.2, or install dbt-core v1.3.2 if no version of dbt-core is found. + - Version 1.4.5 of dbt-dremio requires dbt-core >= 1.2.0 and <= 1.4.5. Installing dbt-dremio will automatically upgrade existing dbt-core versions earlier than 1.2.0 to 1.4.5, or install dbt-core v1.4.5 if no version of dbt-core is found. - Read the [introduction](https://docs.getdbt.com/docs/introduction/) and [viewpoint](https://docs.getdbt.com/docs/about/viewpoint/) ## Join the dbt Community diff --git a/THIRD_PARTY_LICENSES.txt b/THIRD_PARTY_LICENSES.txt index 7e5cd53c..83d15f22 100644 --- a/THIRD_PARTY_LICENSES.txt +++ b/THIRD_PARTY_LICENSES.txt @@ -1,115 +1,55 @@ -Generated using pip-licenses. - -Name Version License - Babel 2.11.0 BSD License + Name Version License + Babel 2.12.1 BSD License Jinja2 3.1.2 BSD License Logbook 1.5.3 BSD - MarkupSafe 2.1.1 BSD License + MarkupSafe 2.1.2 BSD License PyYAML 6.0 MIT License - Pygments 2.13.0 BSD License - Werkzeug 2.2.2 BSD License - agate 1.6.3 MIT License - appnope 0.1.3 BSD License - asttokens 2.1.0 Apache 2.0 - attrs 22.1.0 MIT License - backcall 0.2.0 BSD License - black 22.3.0 MIT License - bleach 5.0.1 Apache Software License - build 0.9.0 MIT License - bump2version 1.0.1 MIT License - bumpversion 0.6.0 MIT License - certifi 2022.9.24 Mozilla Public License 2.0 (MPL 2.0) + Werkzeug 2.2.3 BSD License + agate 1.7.0 MIT License + attrs 22.2.0 MIT License + betterproto 1.2.5 MIT + certifi 2022.12.7 Mozilla Public License 2.0 (MPL 2.0) cffi 1.15.1 MIT License - cfgv 3.3.1 MIT License - charset-normalizer 2.1.1 MIT License + charset-normalizer 3.1.0 MIT License click 8.1.3 BSD License - colorama 0.4.5 BSD License - commonmark 0.9.1 BSD License - dbt-core 1.4.1 Apache Software License + colorama 0.4.6 BSD License + dbt-core 1.4.5 Apache Software License + dbt-dremio 1.4.5 Apache Software License dbt-extractor 0.4.1 Apache Software License - dbt-tests-adapter 1.4.1 Apache Software License - decorator 5.1.1 BSD License - distlib 0.3.6 Python Software Foundation License - docutils 0.19 BSD License; GNU General Public License (GPL); Public Domain; Python Software Foundation License - exceptiongroup 1.0.0 MIT License - execnet 1.9.0 MIT License - executing 1.2.0 MIT License - filelock 3.8.0 Public Domain - flake8 5.0.4 MIT License - flaky 3.7.0 Apache Software License - freezegun 0.3.12 Apache Software License - future 0.18.2 MIT License + dbt-tests-adapter 1.4.5 Apache Software License + exceptiongroup 1.1.1 MIT License + future 0.18.3 MIT License + grpclib 0.4.3 BSD License + h2 4.1.0 MIT License hologram 0.0.15 MIT License - identify 2.5.8 MIT License + hpack 4.0.0 MIT License + hyperframe 6.0.1 MIT License idna 3.4 BSD License - importlib-metadata 5.0.0 Apache Software License - iniconfig 1.1.1 MIT License - ipdb 0.13.9 BSD License - ipython 8.6.0 BSD License + iniconfig 2.0.0 MIT License isodate 0.6.1 BSD License - jaraco.classes 3.2.3 MIT License - jedi 0.18.1 MIT License jsonschema 3.2.0 MIT License - keyring 23.9.3 MIT License; Python Software Foundation License leather 0.3.4 MIT License - mashumaro 3.0.4 Apache Software License - matplotlib-inline 0.1.6 BSD 3-Clause - mccabe 0.7.0 MIT License + mashumaro 3.3.1 Apache Software License minimal-snowplow-tracker 0.0.2 Apache Software License - more-itertools 9.0.0 MIT License - msgpack 1.0.4 Apache Software License - mypy 0.782 MIT License - mypy-extensions 0.4.3 MIT License + msgpack 1.0.5 Apache Software License + multidict 6.0.4 Apache Software License networkx 2.8.8 BSD License - nodeenv 1.7.0 BSD License - packaging 21.3 Apache Software License; BSD License + packaging 23.0 Apache Software License; BSD License parsedatetime 2.4 Apache Software License - parso 0.8.3 MIT License - pathspec 0.9.0 Mozilla Public License 2.0 (MPL 2.0) - pep517 0.13.0 MIT License - pexpect 4.8.0 ISC License (ISCL) - pickleshare 0.7.5 MIT License - pip-tools 6.9.0 BSD License - pkginfo 1.8.3 MIT License - platformdirs 2.5.2 MIT License + pathspec 0.10.3 Mozilla Public License 2.0 (MPL 2.0) pluggy 1.0.0 MIT License - pre-commit 2.20.0 MIT License - prompt-toolkit 3.0.32 BSD License - ptyprocess 0.7.0 ISC License (ISCL) - pure-eval 0.2.2 MIT License - py 1.11.0 MIT License - pycodestyle 2.9.1 MIT License pycparser 2.21 BSD License - pyflakes 2.5.0 MIT License - pyparsing 3.0.9 MIT License - pyrsistent 0.19.2 MIT License - pytest 7.2.0 MIT License - pytest-csv 3.0.0 GNU General Public License (GPL) - pytest-dotenv 0.5.2 MIT License - pytest-logbook 1.2.0 DFSG approved; MIT License - pytest-xdist 3.0.2 MIT License + pyrsistent 0.19.3 MIT License + pytest 7.2.2 MIT License python-dateutil 2.8.2 Apache Software License; BSD License - python-dotenv 0.21.0 BSD License - python-slugify 6.1.2 MIT License + python-slugify 8.0.1 MIT License pytimeparse 1.1.8 MIT License - pytz 2022.6 MIT License - readme-renderer 37.3 Apache Software License - requests 2.28.1 Apache Software License - requests-toolbelt 0.10.1 Apache Software License - rfc3986 2.0.0 Apache Software License - rich 12.6.0 MIT License + pytz 2022.7.1 MIT License + requests 2.28.2 Apache Software License six 1.16.0 MIT License sqlparse 0.4.3 BSD License - stack-data 0.6.0 MIT License + stringcase 1.2.0 MIT text-unidecode 1.3 Artistic License; GNU General Public License (GPL); GNU General Public License v2 or later (GPLv2+) - toml 0.10.2 MIT License tomli 2.0.1 MIT License - tox 3.27.0 MIT License - traitlets 5.5.0 BSD License - twine 4.0.1 Apache Software License - typed-ast 1.4.3 Apache License 2.0 - typing_extensions 4.4.0 Python Software Foundation License - urllib3 1.26.12 MIT License - virtualenv 20.16.6 MIT License - webencodings 0.5.1 BSD License - zipp 3.10.0 MIT License + typing_extensions 4.5.0 Python Software Foundation License + urllib3 1.26.15 MIT License diff --git a/dbt/adapters/dremio/__version__.py b/dbt/adapters/dremio/__version__.py index b7c34eec..4424d68f 100644 --- a/dbt/adapters/dremio/__version__.py +++ b/dbt/adapters/dremio/__version__.py @@ -9,4 +9,4 @@ # See the License for the specific language governing permissions and # limitations under the License. -version = "1.4.1" +version = "1.4.5" diff --git a/dev_requirements.txt b/dev_requirements.txt index ef826dd8..3d2749a4 100644 --- a/dev_requirements.txt +++ b/dev_requirements.txt @@ -1,25 +1,57 @@ -agate==1.6.3 -bandit -black==22.10.0 -bumpversion -dbt-core==1.4.1 -dbt-tests-adapter==1.4.1 -black==22.10.0 -bumpversion -flake8 -flaky -freezegun==1.2.2 -ipdb -pip-tools -pre-commit -pytest -pytest-csv -pytest-dotenv -pytest-logbook -pytest-xdist -pytz -requests==2.28.1 -setuptools==65.6.3 -tox>=3.13 -twine -wheel \ No newline at end of file +agate==1.7.0 +attrs==22.2.0 +Babel==2.12.1 +betterproto==1.2.5 +certifi==2022.12.7 +cffi==1.15.1 +charset-normalizer==3.1.0 +click==8.1.3 +colorama==0.4.6 +dbt-core==1.4.5 +dbt-dremio==1.4.5 +dbt-extractor==0.4.1 +dbt-tests-adapter==1.4.5 +exceptiongroup==1.1.1 +future==0.18.3 +grpclib==0.4.3 +h2==4.1.0 +hologram==0.0.15 +hpack==4.0.0 +hyperframe==6.0.1 +idna==3.4 +iniconfig==2.0.0 +isodate==0.6.1 +Jinja2==3.1.2 +jsonschema==3.2.0 +leather==0.3.4 +Logbook==1.5.3 +MarkupSafe==2.1.2 +mashumaro==3.3.1 +minimal-snowplow-tracker==0.0.2 +msgpack==1.0.5 +multidict==6.0.4 +networkx==2.8.8 +packaging==23.0 +parsedatetime==2.4 +pathspec==0.10.3 +pip-licenses==4.1.0 +pluggy==1.0.0 +prettytable==3.6.0 +pycparser==2.21 +pyrsistent==0.19.3 +pytest==7.2.2 +python-dateutil==2.8.2 +python-slugify==8.0.1 +pytimeparse==1.1.8 +pytz==2022.7.1 +PyYAML==6.0 +requests==2.28.2 +six==1.16.0 +sqlparse==0.4.3 +stringcase==1.2.0 +text-unidecode==1.3 +tomli==2.0.1 +typing_extensions==4.5.0 +urllib3==1.26.15 +wcwidth==0.2.6 +Werkzeug==2.2.3 diff --git a/output.txt b/output.txt new file mode 100644 index 00000000..702e8430 --- /dev/null +++ b/output.txt @@ -0,0 +1,831 @@ +bandit...................................................................Failed +- hook id: bandit +- exit code: 1 + +[main] INFO profile include tests: None +[main] INFO profile exclude tests: None +[main] INFO cli include tests: None +[main] INFO cli exclude tests: None +[main] INFO running on Python 3.10.7 +Run started:2022-11-30 02:48:16.798964 + +Test results: +>> Issue: [B105:hardcoded_password_string] Possible hardcoded password: 'test_sw_up_options' + Severity: Low Confidence: Medium + CWE: CWE-259 (https://cwe.mitre.org/data/definitions/259.html) + Location: tests/component/test_profile_template.py:47:51 + More Info: https://bandit.readthedocs.io/en/0.0.0/plugins/b105_hardcoded_password_string.html +46 _TEST_CLOUD_PROFILE_PROJECT = "test_cloud_options" +47 _TEST_SOFTWARE_USER_PASSWORD_PROFILE_PROJECT = "test_sw_up_options" +48 _TEST_SOFTWARE_PAT_PROFILE_PROJECT = "test_sw_pat_options" + +-------------------------------------------------- +>> Issue: [B101:assert_used] Use of assert detected. The enclosed code will be removed when compiling to optimised byte code. + Severity: Low Confidence: High + CWE: CWE-703 (https://cwe.mitre.org/data/definitions/703.html) + Location: tests/component/test_profile_template.py:121:12 + More Info: https://bandit.readthedocs.io/en/0.0.0/plugins/b101_assert_used.html +120 for option, alias in self._PROFILE_OPTIONS_ALIASES.items(): +121 assert credential_option_aliases[option] is not None +122 assert alias == credential_option_aliases[option] + +-------------------------------------------------- +>> Issue: [B101:assert_used] Use of assert detected. The enclosed code will be removed when compiling to optimised byte code. + Severity: Low Confidence: High + CWE: CWE-703 (https://cwe.mitre.org/data/definitions/703.html) + Location: tests/component/test_profile_template.py:122:12 + More Info: https://bandit.readthedocs.io/en/0.0.0/plugins/b101_assert_used.html +121 assert credential_option_aliases[option] is not None +122 assert alias == credential_option_aliases[option] +123 + +-------------------------------------------------- +>> Issue: [B101:assert_used] Use of assert detected. The enclosed code will be removed when compiling to optimised byte code. + Severity: Low Confidence: High + CWE: CWE-703 (https://cwe.mitre.org/data/definitions/703.html) + Location: tests/component/test_profile_template.py:136:8 + More Info: https://bandit.readthedocs.io/en/0.0.0/plugins/b101_assert_used.html +135 +136 assert test_project is not None +137 +138 for option in test_options: + +-------------------------------------------------- +>> Issue: [B101:assert_used] Use of assert detected. The enclosed code will be removed when compiling to optimised byte code. + Severity: Low Confidence: High + CWE: CWE-703 (https://cwe.mitre.org/data/definitions/703.html) + Location: tests/component/test_profile_template.py:139:12 + More Info: https://bandit.readthedocs.io/en/0.0.0/plugins/b101_assert_used.html +138 for option in test_options: +139 assert test_project[option] is not None +140 if test_options[option] is not None: + +-------------------------------------------------- +>> Issue: [B101:assert_used] Use of assert detected. The enclosed code will be removed when compiling to optimised byte code. + Severity: Low Confidence: High + CWE: CWE-703 (https://cwe.mitre.org/data/definitions/703.html) + Location: tests/component/test_profile_template.py:141:16 + More Info: https://bandit.readthedocs.io/en/0.0.0/plugins/b101_assert_used.html +140 if test_options[option] is not None: +141 assert test_project[option] == test_options[option] + +-------------------------------------------------- +>> Issue: [B101:assert_used] Use of assert detected. The enclosed code will be removed when compiling to optimised byte code. + Severity: Low Confidence: High + CWE: CWE-703 (https://cwe.mitre.org/data/definitions/703.html) + Location: tests/functional/adapter/basic/test_singular_tests.py:26:8 + More Info: https://bandit.readthedocs.io/en/0.0.0/plugins/b101_assert_used.html +25 results = run_dbt(["test"], expect_pass=False) +26 assert len(results) == 2 +27 +28 # We have the right result nodes +29 check_result_nodes_by_name(results, ["passing", "failing"]) + +-------------------------------------------------- +>> Issue: [B101:assert_used] Use of assert detected. The enclosed code will be removed when compiling to optimised byte code. + Severity: Low Confidence: High + CWE: CWE-703 (https://cwe.mitre.org/data/definitions/703.html) + Location: tests/functional/adapter/basic/test_singular_tests.py:34:16 + More Info: https://bandit.readthedocs.io/en/0.0.0/plugins/b101_assert_used.html +33 if result.node.name == "passing": +34 assert result.status == "pass" +35 elif result.node.name == "failing": + +-------------------------------------------------- +>> Issue: [B101:assert_used] Use of assert detected. The enclosed code will be removed when compiling to optimised byte code. + Severity: Low Confidence: High + CWE: CWE-703 (https://cwe.mitre.org/data/definitions/703.html) + Location: tests/functional/adapter/basic/test_singular_tests.py:36:16 + More Info: https://bandit.readthedocs.io/en/0.0.0/plugins/b101_assert_used.html +35 elif result.node.name == "failing": +36 assert result.status == "fail" + +-------------------------------------------------- +>> Issue: [B101:assert_used] Use of assert detected. The enclosed code will be removed when compiling to optimised byte code. + Severity: Low Confidence: High + CWE: CWE-703 (https://cwe.mitre.org/data/definitions/703.html) + Location: tests/utils/util.py:113:16 + More Info: https://bandit.readthedocs.io/en/0.0.0/plugins/b101_assert_used.html +112 if relation.identifier == key: +113 assert relation.type == value, ( +114 f"Got an unexpected relation type of {relation.type} " +115 f"for relation {key}, expected {value}" +116 ) + +-------------------------------------------------- + +Code scanned: + Total lines of code: 436 + Total lines skipped (#nosec): 0 + +Run metrics: + Total issues (by severity): + Undefined: 0 + Low: 10 + Medium: 0 + High: 0 + Total issues (by confidence): + Undefined: 0 + Low: 0 + Medium: 1 + High: 9 +Files skipped (0): +[main] INFO profile include tests: None +[main] INFO profile exclude tests: None +[main] INFO cli include tests: None +[main] INFO cli exclude tests: None +[main] INFO running on Python 3.10.7 +Run started:2022-11-30 02:48:16.793743 + +Test results: + No issues identified. + +Code scanned: + Total lines of code: 285 + Total lines skipped (#nosec): 0 + +Run metrics: + Total issues (by severity): + Undefined: 0 + Low: 0 + Medium: 0 + High: 0 + Total issues (by confidence): + Undefined: 0 + Low: 0 + Medium: 0 + High: 0 +Files skipped (0): +[main] INFO profile include tests: None +[main] INFO profile exclude tests: None +[main] INFO cli include tests: None +[main] INFO cli exclude tests: None +[main] INFO running on Python 3.10.7 +Run started:2022-11-30 02:48:16.783176 + +Test results: + No issues identified. + +Code scanned: + Total lines of code: 198 + Total lines skipped (#nosec): 0 + +Run metrics: + Total issues (by severity): + Undefined: 0 + Low: 0 + Medium: 0 + High: 0 + Total issues (by confidence): + Undefined: 0 + Low: 0 + Medium: 0 + High: 0 +Files skipped (0): +[main] INFO profile include tests: None +[main] INFO profile exclude tests: None +[main] INFO cli include tests: None +[main] INFO cli exclude tests: None +[main] INFO running on Python 3.10.7 +Run started:2022-11-30 02:48:16.803633 + +Test results: +>> Issue: [B101:assert_used] Use of assert detected. The enclosed code will be removed when compiling to optimised byte code. + Severity: Low Confidence: High + CWE: CWE-703 (https://cwe.mitre.org/data/definitions/703.html) + Location: tests/functional/adapter/basic/test_docs_generate.py:50:4 + More Info: https://bandit.readthedocs.io/en/0.0.0/plugins/b101_assert_used.html +49 catalog_path = os.path.join(project.project_root, "target", "catalog.json") +50 assert os.path.exists(catalog_path) +51 catalog = get_artifact(catalog_path) + +-------------------------------------------------- +>> Issue: [B101:assert_used] Use of assert detected. The enclosed code will be removed when compiling to optimised byte code. + Severity: Low Confidence: High + CWE: CWE-703 (https://cwe.mitre.org/data/definitions/703.html) + Location: tests/functional/adapter/basic/test_docs_generate.py:54:4 + More Info: https://bandit.readthedocs.io/en/0.0.0/plugins/b101_assert_used.html +53 # verify the catalog +54 assert set(catalog) == {"errors", "metadata", "nodes", "sources"} +55 verify_metadata( + +-------------------------------------------------- +>> Issue: [B101:assert_used] Use of assert detected. The enclosed code will be removed when compiling to optimised byte code. + Severity: Low Confidence: High + CWE: CWE-703 (https://cwe.mitre.org/data/definitions/703.html) + Location: tests/functional/adapter/basic/test_docs_generate.py:60:4 + More Info: https://bandit.readthedocs.io/en/0.0.0/plugins/b101_assert_used.html +59 ) +60 assert not catalog["errors"] +61 key = "nodes" + +-------------------------------------------------- +>> Issue: [B101:assert_used] Use of assert detected. The enclosed code will be removed when compiling to optimised byte code. + Severity: Low Confidence: High + CWE: CWE-703 (https://cwe.mitre.org/data/definitions/703.html) + Location: tests/functional/adapter/basic/test_docs_generate.py:65:12 + More Info: https://bandit.readthedocs.io/en/0.0.0/plugins/b101_assert_used.html +64 for node_key in expected_node: +65 assert node_key in found_node +66 assert ( + +-------------------------------------------------- +>> Issue: [B101:assert_used] Use of assert detected. The enclosed code will be removed when compiling to optimised byte code. + Severity: Low Confidence: High + CWE: CWE-703 (https://cwe.mitre.org/data/definitions/703.html) + Location: tests/functional/adapter/basic/test_docs_generate.py:66:12 + More Info: https://bandit.readthedocs.io/en/0.0.0/plugins/b101_assert_used.html +65 assert node_key in found_node +66 assert ( +67 found_node[node_key] == expected_node[node_key] +68 ), f"Key '{node_key}' in '{unique_id}' did not match" +69 + +-------------------------------------------------- +>> Issue: [B101:assert_used] Use of assert detected. The enclosed code will be removed when compiling to optimised byte code. + Severity: Low Confidence: High + CWE: CWE-703 (https://cwe.mitre.org/data/definitions/703.html) + Location: tests/functional/adapter/basic/test_docs_generate.py:147:8 + More Info: https://bandit.readthedocs.io/en/0.0.0/plugins/b101_assert_used.html +146 start_time = run_and_generate(project, ["--no-compile"]) +147 assert not os.path.exists( +148 os.path.join(project.project_root, "target", "manifest.json") +149 ) +150 verify_catalog_nodes(project, expected_catalog, start_time) + +-------------------------------------------------- +>> Issue: [B101:assert_used] Use of assert detected. The enclosed code will be removed when compiling to optimised byte code. + Severity: Low Confidence: High + CWE: CWE-703 (https://cwe.mitre.org/data/definitions/703.html) + Location: tests/functional/adapter/basic/test_docs_generate.py:158:8 + More Info: https://bandit.readthedocs.io/en/0.0.0/plugins/b101_assert_used.html +157 # Check that assets have been copied to the target directory for use in the docs html page +158 assert os.path.exists(os.path.join(".", "target", "assets")) +159 assert os.path.exists(os.path.join(".", "target", "assets", "lorem-ipsum.txt")) + +-------------------------------------------------- +>> Issue: [B101:assert_used] Use of assert detected. The enclosed code will be removed when compiling to optimised byte code. + Severity: Low Confidence: High + CWE: CWE-703 (https://cwe.mitre.org/data/definitions/703.html) + Location: tests/functional/adapter/basic/test_docs_generate.py:159:8 + More Info: https://bandit.readthedocs.io/en/0.0.0/plugins/b101_assert_used.html +158 assert os.path.exists(os.path.join(".", "target", "assets")) +159 assert os.path.exists(os.path.join(".", "target", "assets", "lorem-ipsum.txt")) +160 assert not os.path.exists(os.path.join(".", "target", "non-existent-assets")) + +-------------------------------------------------- +>> Issue: [B101:assert_used] Use of assert detected. The enclosed code will be removed when compiling to optimised byte code. + Severity: Low Confidence: High + CWE: CWE-703 (https://cwe.mitre.org/data/definitions/703.html) + Location: tests/functional/adapter/basic/test_docs_generate.py:160:8 + More Info: https://bandit.readthedocs.io/en/0.0.0/plugins/b101_assert_used.html +159 assert os.path.exists(os.path.join(".", "target", "assets", "lorem-ipsum.txt")) +160 assert not os.path.exists(os.path.join(".", "target", "non-existent-assets")) +161 + +-------------------------------------------------- + +Code scanned: + Total lines of code: 387 + Total lines skipped (#nosec): 0 + +Run metrics: + Total issues (by severity): + Undefined: 0 + Low: 9 + Medium: 0 + High: 0 + Total issues (by confidence): + Undefined: 0 + Low: 0 + Medium: 0 + High: 9 +Files skipped (0): +[main] INFO profile include tests: None +[main] INFO profile exclude tests: None +[main] INFO cli include tests: None +[main] INFO cli exclude tests: None +[main] INFO running on Python 3.10.7 +Run started:2022-11-30 02:48:16.797557 + +Test results: + No issues identified. + +Code scanned: + Total lines of code: 290 + Total lines skipped (#nosec): 0 + +Run metrics: + Total issues (by severity): + Undefined: 0 + Low: 0 + Medium: 0 + High: 0 + Total issues (by confidence): + Undefined: 0 + Low: 0 + Medium: 0 + High: 0 +Files skipped (0): +[main] INFO profile include tests: None +[main] INFO profile exclude tests: None +[main] INFO cli include tests: None +[main] INFO cli exclude tests: None +[main] INFO running on Python 3.10.7 +Run started:2022-11-30 02:48:16.809878 + +Test results: +>> Issue: [B101:assert_used] Use of assert detected. The enclosed code will be removed when compiling to optimised byte code. + Severity: Low Confidence: High + CWE: CWE-703 (https://cwe.mitre.org/data/definitions/703.html) + Location: tests/functional/adapter/grants/test_model_grants.py:40:8 + More Info: https://bandit.readthedocs.io/en/0.0.0/plugins/b101_assert_used.html +39 select_privilege_name = self.privilege_grantee_name_overrides()["select"] +40 assert len(test_users) == 3 +41 +42 # View materialization, single select grant +43 (results, log_output) = run_dbt_and_capture(["--debug", "run"]) + +-------------------------------------------------- +>> Issue: [B101:assert_used] Use of assert detected. The enclosed code will be removed when compiling to optimised byte code. + Severity: Low Confidence: High + CWE: CWE-703 (https://cwe.mitre.org/data/definitions/703.html) + Location: tests/functional/adapter/grants/test_model_grants.py:44:8 + More Info: https://bandit.readthedocs.io/en/0.0.0/plugins/b101_assert_used.html +43 (results, log_output) = run_dbt_and_capture(["--debug", "run"]) +44 assert len(results) == 1 +45 manifest = get_manifest(project.project_root) + +-------------------------------------------------- +>> Issue: [B101:assert_used] Use of assert detected. The enclosed code will be removed when compiling to optimised byte code. + Severity: Low Confidence: High + CWE: CWE-703 (https://cwe.mitre.org/data/definitions/703.html) + Location: tests/functional/adapter/grants/test_model_grants.py:49:8 + More Info: https://bandit.readthedocs.io/en/0.0.0/plugins/b101_assert_used.html +48 expected = {select_privilege_name: [test_users[0]]} +49 assert model.config.grants == expected +50 assert model.config.materialized == "view" + +-------------------------------------------------- +>> Issue: [B101:assert_used] Use of assert detected. The enclosed code will be removed when compiling to optimised byte code. + Severity: Low Confidence: High + CWE: CWE-703 (https://cwe.mitre.org/data/definitions/703.html) + Location: tests/functional/adapter/grants/test_model_grants.py:50:8 + More Info: https://bandit.readthedocs.io/en/0.0.0/plugins/b101_assert_used.html +49 assert model.config.grants == expected +50 assert model.config.materialized == "view" +51 self.assert_expected_grants_match_actual(project, "my_model", expected) + +-------------------------------------------------- +>> Issue: [B101:assert_used] Use of assert detected. The enclosed code will be removed when compiling to optimised byte code. + Severity: Low Confidence: High + CWE: CWE-703 (https://cwe.mitre.org/data/definitions/703.html) + Location: tests/functional/adapter/grants/test_model_grants.py:57:8 + More Info: https://bandit.readthedocs.io/en/0.0.0/plugins/b101_assert_used.html +56 (results, log_output) = run_dbt_and_capture(["--debug", "run"]) +57 assert len(results) == 1 +58 expected = {select_privilege_name: [get_test_users[1]]} + +-------------------------------------------------- +>> Issue: [B101:assert_used] Use of assert detected. The enclosed code will be removed when compiling to optimised byte code. + Severity: Low Confidence: High + CWE: CWE-703 (https://cwe.mitre.org/data/definitions/703.html) + Location: tests/functional/adapter/grants/test_model_grants.py:80:8 + More Info: https://bandit.readthedocs.io/en/0.0.0/plugins/b101_assert_used.html +79 insert_privilege_name = self.privilege_grantee_name_overrides()["insert"] +80 assert len(test_users) == 3 +81 # Table materialization, single select grant +82 updated_yaml = self.interpolate_name_overrides(table_model_schema_yml) + +-------------------------------------------------- +>> Issue: [B101:assert_used] Use of assert detected. The enclosed code will be removed when compiling to optimised byte code. + Severity: Low Confidence: High + CWE: CWE-703 (https://cwe.mitre.org/data/definitions/703.html) + Location: tests/functional/adapter/grants/test_model_grants.py:85:8 + More Info: https://bandit.readthedocs.io/en/0.0.0/plugins/b101_assert_used.html +84 (results, log_output) = run_dbt_and_capture(["--debug", "run"]) +85 assert len(results) == 1 +86 manifest = get_manifest(project.project_root) + +-------------------------------------------------- +>> Issue: [B101:assert_used] Use of assert detected. The enclosed code will be removed when compiling to optimised byte code. + Severity: Low Confidence: High + CWE: CWE-703 (https://cwe.mitre.org/data/definitions/703.html) + Location: tests/functional/adapter/grants/test_model_grants.py:89:8 + More Info: https://bandit.readthedocs.io/en/0.0.0/plugins/b101_assert_used.html +88 model = manifest.nodes[model_id] +89 assert model.config.materialized == "table" +90 expected = {select_privilege_name: [test_users[0]]} + +-------------------------------------------------- +>> Issue: [B101:assert_used] Use of assert detected. The enclosed code will be removed when compiling to optimised byte code. + Severity: Low Confidence: High + CWE: CWE-703 (https://cwe.mitre.org/data/definitions/703.html) + Location: tests/functional/adapter/grants/test_model_grants.py:97:8 + More Info: https://bandit.readthedocs.io/en/0.0.0/plugins/b101_assert_used.html +96 (results, log_output) = run_dbt_and_capture(["--debug", "run"]) +97 assert len(results) == 1 +98 manifest = get_manifest(project.project_root) + +-------------------------------------------------- +>> Issue: [B101:assert_used] Use of assert detected. The enclosed code will be removed when compiling to optimised byte code. + Severity: Low Confidence: High + CWE: CWE-703 (https://cwe.mitre.org/data/definitions/703.html) + Location: tests/functional/adapter/grants/test_model_grants.py:100:8 + More Info: https://bandit.readthedocs.io/en/0.0.0/plugins/b101_assert_used.html +99 model = manifest.nodes[model_id] +100 assert model.config.materialized == "table" +101 expected = {select_privilege_name: [test_users[1]]} + +-------------------------------------------------- +>> Issue: [B101:assert_used] Use of assert detected. The enclosed code will be removed when compiling to optimised byte code. + Severity: Low Confidence: High + CWE: CWE-703 (https://cwe.mitre.org/data/definitions/703.html) + Location: tests/functional/adapter/grants/test_model_grants.py:110:8 + More Info: https://bandit.readthedocs.io/en/0.0.0/plugins/b101_assert_used.html +109 (results, log_output) = run_dbt_and_capture(["--debug", "run"]) +110 assert len(results) == 1 +111 manifest = get_manifest(project.project_root) + +-------------------------------------------------- +>> Issue: [B101:assert_used] Use of assert detected. The enclosed code will be removed when compiling to optimised byte code. + Severity: Low Confidence: High + CWE: CWE-703 (https://cwe.mitre.org/data/definitions/703.html) + Location: tests/functional/adapter/grants/test_model_grants.py:113:8 + More Info: https://bandit.readthedocs.io/en/0.0.0/plugins/b101_assert_used.html +112 model = manifest.nodes[model_id] +113 assert model.config.materialized == "table" +114 expected = {select_privilege_name: [test_users[0], test_users[1]]} + +-------------------------------------------------- +>> Issue: [B101:assert_used] Use of assert detected. The enclosed code will be removed when compiling to optimised byte code. + Severity: Low Confidence: High + CWE: CWE-703 (https://cwe.mitre.org/data/definitions/703.html) + Location: tests/functional/adapter/grants/test_model_grants.py:123:8 + More Info: https://bandit.readthedocs.io/en/0.0.0/plugins/b101_assert_used.html +122 (results, log_output) = run_dbt_and_capture(["--debug", "run"]) +123 assert len(results) == 1 +124 manifest = get_manifest(project.project_root) + +-------------------------------------------------- +>> Issue: [B101:assert_used] Use of assert detected. The enclosed code will be removed when compiling to optimised byte code. + Severity: Low Confidence: High + CWE: CWE-703 (https://cwe.mitre.org/data/definitions/703.html) + Location: tests/functional/adapter/grants/test_model_grants.py:126:8 + More Info: https://bandit.readthedocs.io/en/0.0.0/plugins/b101_assert_used.html +125 model = manifest.nodes[model_id] +126 assert model.config.materialized == "table" +127 expected = { + +-------------------------------------------------- +>> Issue: [B101:assert_used] Use of assert detected. The enclosed code will be removed when compiling to optimised byte code. + Severity: Low Confidence: High + CWE: CWE-703 (https://cwe.mitre.org/data/definitions/703.html) + Location: tests/unit/test_connection.py:48:8 + More Info: https://bandit.readthedocs.io/en/0.0.0/plugins/b101_assert_used.html +47 # Assert +48 assert mocked_post_func.call_count == TOTAL_CONNECTION_ATTEMPTS + +-------------------------------------------------- + +Code scanned: + Total lines of code: 334 + Total lines skipped (#nosec): 0 + +Run metrics: + Total issues (by severity): + Undefined: 0 + Low: 15 + Medium: 0 + High: 0 + Total issues (by confidence): + Undefined: 0 + Low: 0 + Medium: 0 + High: 15 +Files skipped (0): +[main] INFO profile include tests: None +[main] INFO profile exclude tests: None +[main] INFO cli include tests: None +[main] INFO cli exclude tests: None +[main] INFO running on Python 3.10.7 +[node_visitor] WARNING Unable to find qualified name for module: setup.py +Run started:2022-11-30 02:48:16.785126 + +Test results: + No issues identified. + +Code scanned: + Total lines of code: 97 + Total lines skipped (#nosec): 0 + +Run metrics: + Total issues (by severity): + Undefined: 0 + Low: 0 + Medium: 0 + High: 0 + Total issues (by confidence): + Undefined: 0 + Low: 0 + Medium: 0 + High: 0 +Files skipped (0): +[main] INFO profile include tests: None +[main] INFO profile exclude tests: None +[main] INFO cli include tests: None +[main] INFO cli exclude tests: None +[main] INFO running on Python 3.10.7 +Run started:2022-11-30 02:48:16.804530 + +Test results: +>> Issue: [B101:assert_used] Use of assert detected. The enclosed code will be removed when compiling to optimised byte code. + Severity: Low Confidence: High + CWE: CWE-703 (https://cwe.mitre.org/data/definitions/703.html) + Location: tests/functional/adapter/basic/test_base_mat.py:103:8 + More Info: https://bandit.readthedocs.io/en/0.0.0/plugins/b101_assert_used.html +102 # seed result length +103 assert len(results) == 1 +104 +105 # run command +106 results = run_dbt() + +-------------------------------------------------- +>> Issue: [B101:assert_used] Use of assert detected. The enclosed code will be removed when compiling to optimised byte code. + Severity: Low Confidence: High + CWE: CWE-703 (https://cwe.mitre.org/data/definitions/703.html) + Location: tests/functional/adapter/basic/test_base_mat.py:108:8 + More Info: https://bandit.readthedocs.io/en/0.0.0/plugins/b101_assert_used.html +107 # run result length +108 assert len(results) == 3 +109 +110 # names exist in result nodes +111 check_result_nodes_by_name(results, ["view_model", "table_model", "swappable"]) + +-------------------------------------------------- +>> Issue: [B608:hardcoded_sql_expressions] Possible SQL injection vector through string-based query construction. + Severity: Medium Confidence: Low + CWE: CWE-89 (https://cwe.mitre.org/data/definitions/89.html) + Location: tests/functional/adapter/basic/test_base_mat.py:125:12 + More Info: https://bandit.readthedocs.io/en/0.0.0/plugins/b608_hardcoded_sql_expressions.html +124 result = project.run_sql( +125 f"select count(*) as num_rows from {relation}", fetch="one" +126 ) + +-------------------------------------------------- +>> Issue: [B101:assert_used] Use of assert detected. The enclosed code will be removed when compiling to optimised byte code. + Severity: Low Confidence: High + CWE: CWE-703 (https://cwe.mitre.org/data/definitions/703.html) + Location: tests/functional/adapter/basic/test_base_mat.py:127:8 + More Info: https://bandit.readthedocs.io/en/0.0.0/plugins/b101_assert_used.html +126 ) +127 assert result[0] == 10 +128 +129 # relations_equal +130 check_relations_equal( + +-------------------------------------------------- +>> Issue: [B101:assert_used] Use of assert detected. The enclosed code will be removed when compiling to optimised byte code. + Severity: Low Confidence: High + CWE: CWE-703 (https://cwe.mitre.org/data/definitions/703.html) + Location: tests/functional/adapter/basic/test_base_mat.py:136:8 + More Info: https://bandit.readthedocs.io/en/0.0.0/plugins/b101_assert_used.html +135 catalog = run_dbt(["docs", "generate"]) +136 assert len(catalog.nodes) == 4 +137 assert len(catalog.sources) == 1 + +-------------------------------------------------- +>> Issue: [B101:assert_used] Use of assert detected. The enclosed code will be removed when compiling to optimised byte code. + Severity: Low Confidence: High + CWE: CWE-703 (https://cwe.mitre.org/data/definitions/703.html) + Location: tests/functional/adapter/basic/test_base_mat.py:137:8 + More Info: https://bandit.readthedocs.io/en/0.0.0/plugins/b101_assert_used.html +136 assert len(catalog.nodes) == 4 +137 assert len(catalog.sources) == 1 +138 +139 # run_dbt changing materialized_var to view +140 # required for BigQuery +141 if project.test_config.get("require_full_refresh", False): + +-------------------------------------------------- +>> Issue: [B101:assert_used] Use of assert detected. The enclosed code will be removed when compiling to optimised byte code. + Severity: Low Confidence: High + CWE: CWE-703 (https://cwe.mitre.org/data/definitions/703.html) + Location: tests/functional/adapter/basic/test_base_mat.py:156:8 + More Info: https://bandit.readthedocs.io/en/0.0.0/plugins/b101_assert_used.html +155 ) +156 assert len(results) == 1 +157 # check relation types, swappable is view +158 expected = { + +-------------------------------------------------- +>> Issue: [B101:assert_used] Use of assert detected. The enclosed code will be removed when compiling to optimised byte code. + Severity: Low Confidence: High + CWE: CWE-703 (https://cwe.mitre.org/data/definitions/703.html) + Location: tests/functional/adapter/basic/test_base_mat.py:177:8 + More Info: https://bandit.readthedocs.io/en/0.0.0/plugins/b101_assert_used.html +176 ) +177 assert len(results) == 1 +178 +179 # check relation types, swappable is table +180 expected = { + +-------------------------------------------------- +>> Issue: [B101:assert_used] Use of assert detected. The enclosed code will be removed when compiling to optimised byte code. + Severity: Low Confidence: High + CWE: CWE-703 (https://cwe.mitre.org/data/definitions/703.html) + Location: tests/functional/adapter/grants/test_incremental_grants.py:47:8 + More Info: https://bandit.readthedocs.io/en/0.0.0/plugins/b101_assert_used.html +46 select_privilege_name = self.privilege_grantee_name_overrides()["select"] +47 assert len(test_users) == 3 +48 +49 # Incremental materialization, single select grant +50 (results, log_output) = run_dbt_and_capture(["--debug", "run"]) + +-------------------------------------------------- +>> Issue: [B101:assert_used] Use of assert detected. The enclosed code will be removed when compiling to optimised byte code. + Severity: Low Confidence: High + CWE: CWE-703 (https://cwe.mitre.org/data/definitions/703.html) + Location: tests/functional/adapter/grants/test_incremental_grants.py:51:8 + More Info: https://bandit.readthedocs.io/en/0.0.0/plugins/b101_assert_used.html +50 (results, log_output) = run_dbt_and_capture(["--debug", "run"]) +51 assert len(results) == 1 +52 manifest = get_manifest(project.project_root) + +-------------------------------------------------- +>> Issue: [B101:assert_used] Use of assert detected. The enclosed code will be removed when compiling to optimised byte code. + Severity: Low Confidence: High + CWE: CWE-703 (https://cwe.mitre.org/data/definitions/703.html) + Location: tests/functional/adapter/grants/test_incremental_grants.py:55:8 + More Info: https://bandit.readthedocs.io/en/0.0.0/plugins/b101_assert_used.html +54 model = manifest.nodes[model_id] +55 assert model.config.materialized == "incremental" +56 expected = {select_privilege_name: [test_users[0]]} + +-------------------------------------------------- +>> Issue: [B101:assert_used] Use of assert detected. The enclosed code will be removed when compiling to optimised byte code. + Severity: Low Confidence: High + CWE: CWE-703 (https://cwe.mitre.org/data/definitions/703.html) + Location: tests/functional/adapter/grants/test_incremental_grants.py:63:8 + More Info: https://bandit.readthedocs.io/en/0.0.0/plugins/b101_assert_used.html +62 (results, log_output) = run_dbt_and_capture(["--debug", "run"]) +63 assert len(results) == 1 +64 assert "revoke " not in log_output + +-------------------------------------------------- +>> Issue: [B101:assert_used] Use of assert detected. The enclosed code will be removed when compiling to optimised byte code. + Severity: Low Confidence: High + CWE: CWE-703 (https://cwe.mitre.org/data/definitions/703.html) + Location: tests/functional/adapter/grants/test_incremental_grants.py:64:8 + More Info: https://bandit.readthedocs.io/en/0.0.0/plugins/b101_assert_used.html +63 assert len(results) == 1 +64 assert "revoke " not in log_output +65 assert ( + +-------------------------------------------------- +>> Issue: [B101:assert_used] Use of assert detected. The enclosed code will be removed when compiling to optimised byte code. + Severity: Low Confidence: High + CWE: CWE-703 (https://cwe.mitre.org/data/definitions/703.html) + Location: tests/functional/adapter/grants/test_incremental_grants.py:65:8 + More Info: https://bandit.readthedocs.io/en/0.0.0/plugins/b101_assert_used.html +64 assert "revoke " not in log_output +65 assert ( +66 "grant " not in log_output +67 ) # with space to disambiguate from 'show grants' +68 self.assert_expected_grants_match_actual( + +-------------------------------------------------- +>> Issue: [B101:assert_used] Use of assert detected. The enclosed code will be removed when compiling to optimised byte code. + Severity: Low Confidence: High + CWE: CWE-703 (https://cwe.mitre.org/data/definitions/703.html) + Location: tests/functional/adapter/grants/test_incremental_grants.py:78:8 + More Info: https://bandit.readthedocs.io/en/0.0.0/plugins/b101_assert_used.html +77 (results, log_output) = run_dbt_and_capture(["--debug", "run"]) +78 assert len(results) == 1 +79 assert "revoke " in log_output + +-------------------------------------------------- +>> Issue: [B101:assert_used] Use of assert detected. The enclosed code will be removed when compiling to optimised byte code. + Severity: Low Confidence: High + CWE: CWE-703 (https://cwe.mitre.org/data/definitions/703.html) + Location: tests/functional/adapter/grants/test_incremental_grants.py:79:8 + More Info: https://bandit.readthedocs.io/en/0.0.0/plugins/b101_assert_used.html +78 assert len(results) == 1 +79 assert "revoke " in log_output +80 manifest = get_manifest(project.project_root) + +-------------------------------------------------- +>> Issue: [B101:assert_used] Use of assert detected. The enclosed code will be removed when compiling to optimised byte code. + Severity: Low Confidence: High + CWE: CWE-703 (https://cwe.mitre.org/data/definitions/703.html) + Location: tests/functional/adapter/grants/test_incremental_grants.py:82:8 + More Info: https://bandit.readthedocs.io/en/0.0.0/plugins/b101_assert_used.html +81 model = manifest.nodes[model_id] +82 assert model.config.materialized == "incremental" +83 expected = {select_privilege_name: [test_users[1]]} + +-------------------------------------------------- +>> Issue: [B101:assert_used] Use of assert detected. The enclosed code will be removed when compiling to optimised byte code. + Severity: Low Confidence: High + CWE: CWE-703 (https://cwe.mitre.org/data/definitions/703.html) + Location: tests/functional/adapter/grants/test_incremental_grants.py:90:8 + More Info: https://bandit.readthedocs.io/en/0.0.0/plugins/b101_assert_used.html +89 run_dbt(["--debug", "run", "--full-refresh"]) +90 assert len(results) == 1 +91 # whether grants or revokes happened will vary by adapter +92 self.assert_expected_grants_match_actual( + +-------------------------------------------------- +>> Issue: [B101:assert_used] Use of assert detected. The enclosed code will be removed when compiling to optimised byte code. + Severity: Low Confidence: High + CWE: CWE-703 (https://cwe.mitre.org/data/definitions/703.html) + Location: tests/functional/adapter/grants/test_incremental_grants.py:104:8 + More Info: https://bandit.readthedocs.io/en/0.0.0/plugins/b101_assert_used.html +103 (results, log_output) = run_dbt_and_capture(["--debug", "run"]) +104 assert len(results) == 1 +105 # Need to comment this out, as it looks like the grant is copied over +106 # assert "grant " in log_output +107 assert "revoke " not in log_output + +-------------------------------------------------- +>> Issue: [B101:assert_used] Use of assert detected. The enclosed code will be removed when compiling to optimised byte code. + Severity: Low Confidence: High + CWE: CWE-703 (https://cwe.mitre.org/data/definitions/703.html) + Location: tests/functional/adapter/grants/test_incremental_grants.py:107:8 + More Info: https://bandit.readthedocs.io/en/0.0.0/plugins/b101_assert_used.html +106 # assert "grant " in log_output +107 assert "revoke " not in log_output +108 self.assert_expected_grants_match_actual( + +-------------------------------------------------- + +Code scanned: + Total lines of code: 339 + Total lines skipped (#nosec): 0 + +Run metrics: + Total issues (by severity): + Undefined: 0 + Low: 19 + Medium: 1 + High: 0 + Total issues (by confidence): + Undefined: 0 + Low: 1 + Medium: 0 + High: 19 +Files skipped (0): +[main] INFO profile include tests: None +[main] INFO profile exclude tests: None +[main] INFO cli include tests: None +[main] INFO cli exclude tests: None +[main] INFO running on Python 3.10.7 +Run started:2022-11-30 02:48:16.793096 + +Test results: +>> Issue: [B101:assert_used] Use of assert detected. The enclosed code will be removed when compiling to optimised byte code. + Severity: Low Confidence: High + CWE: CWE-703 (https://cwe.mitre.org/data/definitions/703.html) + Location: tests/functional/adapter/test_concurrency.py:82:8 + More Info: https://bandit.readthedocs.io/en/0.0.0/plugins/b101_assert_used.html +81 results = run_dbt(["run"], expect_pass=False) +82 assert len(results) == 7 +83 check_relations_equal(project.adapter, ["seed", "view_model"]) + +-------------------------------------------------- +>> Issue: [B101:assert_used] Use of assert detected. The enclosed code will be removed when compiling to optimised byte code. + Severity: Low Confidence: High + CWE: CWE-703 (https://cwe.mitre.org/data/definitions/703.html) + Location: tests/functional/adapter/test_concurrency.py:94:8 + More Info: https://bandit.readthedocs.io/en/0.0.0/plugins/b101_assert_used.html +93 results, output = run_dbt_and_capture(["run"], expect_pass=False) +94 assert len(results) == 7 +95 check_relations_equal(project.adapter, ["seed", "view_model"]) + +-------------------------------------------------- +>> Issue: [B101:assert_used] Use of assert detected. The enclosed code will be removed when compiling to optimised byte code. + Severity: Low Confidence: High + CWE: CWE-703 (https://cwe.mitre.org/data/definitions/703.html) + Location: tests/functional/adapter/test_concurrency.py:102:8 + More Info: https://bandit.readthedocs.io/en/0.0.0/plugins/b101_assert_used.html +101 +102 assert "PASS=5 WARN=0 ERROR=1 SKIP=1 TOTAL=7" in output + +-------------------------------------------------- + +Code scanned: + Total lines of code: 82 + Total lines skipped (#nosec): 0 + +Run metrics: + Total issues (by severity): + Undefined: 0 + Low: 3 + Medium: 0 + High: 0 + Total issues (by confidence): + Undefined: 0 + Low: 0 + Medium: 0 + High: 3 +Files skipped (0): diff --git a/setup.py b/setup.py index 445f7232..33fb49b8 100644 --- a/setup.py +++ b/setup.py @@ -13,7 +13,7 @@ from setuptools import find_namespace_packages, setup package_name = "dbt-dremio" -package_version = "1.4.1" +package_version = "1.4.5" description = """The Dremio adapter plugin for dbt""" setup( @@ -27,7 +27,7 @@ packages=find_namespace_packages(include=["dbt", "dbt.*"]), include_package_data=True, install_requires=[ - "dbt-core>=1.2, <=1.4.1", + "dbt-core>=1.2, <=1.4.5", ], classifiers=[ "License :: OSI Approved :: Apache Software License",