You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Running the soda ingest dbt command with dbt 1.8 instead of dbt 1.7 makes the command throw the following exception:
soda ingest dbt -d snowflake -c configuration.yaml --dbt-artifacts /dbt_models/target/dbt_b2c-f763934-2944744/run_results.json
[15:25:30] Soda Library 1.1.27
[15:25:30] Soda Core 3.0.47
cannot import name 'RunResultOutput' from 'dbt.contracts.results' (/workspaces/b2c-consumer/.venv/lib/python3.10/site-packages/dbt/contracts/results.py)
Traceback (most recent call last):
File "/workspaces/b2c-consumer/.venv/lib/python3.10/site-packages/soda/common/exception_helper.py", line 26, in invoke
return super().invoke(ctx)
File "/workspaces/b2c-consumer/.venv/lib/python3.10/site-packages/click/core.py", line 1688, in invoke
return _process_result(sub_ctx.command.invoke(sub_ctx))
File "/workspaces/b2c-consumer/.venv/lib/python3.10/site-packages/click/core.py", line 1434, in invoke
return ctx.invoke(self.callback, **ctx.params)
File "/workspaces/b2c-consumer/.venv/lib/python3.10/site-packages/click/core.py", line 783, in invoke
return __callback(*args, **kwargs)
File "/workspaces/b2c-consumer/.venv/lib/python3.10/site-packages/soda/telemetry/soda_tracer.py", line 79, in wrapper
raise e
File "/workspaces/b2c-consumer/.venv/lib/python3.10/site-packages/soda/telemetry/soda_tracer.py", line 72, in wrapper
result = fn(*original_args, **original_kwargs)
File "/workspaces/b2c-consumer/.venv/lib/python3.10/site-packages/soda/cli/cli.py", line 624, in ingest
from soda.cloud.dbt import DbtCloud
File "/workspaces/b2c-consumer/.venv/lib/python3.10/site-packages/soda/cloud/dbt.py", line 20, in <module>
from dbt.contracts.results import RunResultOutput
ImportError: cannot import name 'RunResultOutput' from 'dbt.contracts.results' (/workspaces/b2c-consumer/.venv/lib/python3.10/site-packages/dbt/contracts/results.py)
``
`
Using `soda-dbt` version `1.1.27`
The text was updated successfully, but these errors were encountered:
In version 1.8 of dbt-core there was a PR (#9350) to move the RunResultOutput class into core/dbt/artifacts/run.py. An easy fix for this might be to use a try/except and import from the new location and fall back to the old location if not present (see below), however I did some testing and there are probably some other fixes that need to be made to get these versions compatible.
Running the
soda ingest dbt
command withdbt 1.8
instead ofdbt 1.7
makes the command throw the following exception:The text was updated successfully, but these errors were encountered: