Skip to content

Commit

Permalink
Merge pull request #166 from jwills/jwills_next_version_fixes
Browse files Browse the repository at this point in the history
Prepping the dbt-duckdb tests to pass under the next release of DuckDB
  • Loading branch information
jwills authored May 9, 2023
2 parents c9d4988 + ba28487 commit 092beda
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 1 deletion.
5 changes: 5 additions & 0 deletions tests/conftest.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@
import subprocess
import time

import duckdb
import pytest


Expand Down Expand Up @@ -43,6 +44,10 @@ def bv_server_process(profile_type):
def dbt_profile_target(profile_type, bv_server_process, tmp_path_factory):
profile = {"type": "duckdb", "threads": 4}

if duckdb.__version__ > "0.7.1":
# for backwards compatibility
profile["settings"] = {"integer_division": True}

if profile_type == "buenavista":
profile["database"] = "memory"
profile["remote"] = {
Expand Down
2 changes: 1 addition & 1 deletion tests/functional/adapter/test_rematerialize.py
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@
"""

downstream_of_partition_model = """
select a * 3 from {{ ref('upstream_partition_by_model') }}
select a from {{ ref('upstream_partition_by_model') }}
"""


Expand Down

0 comments on commit 092beda

Please sign in to comment.