-
Notifications
You must be signed in to change notification settings - Fork 170
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[Bug] Render source nodes #1229
Comments
Hey @was-av! 👋 I'm here to help you with bug fixes, answer your questions, and guide you on becoming a contributor. The error you're encountering is due to the To fix this, you need to modify the def run_dbt_ls(
self, dbt_cmd: str, project_path: Path, tmp_dir: Path, env_vars: dict[str, str]
) -> dict[str, DbtNode]:
"""Runs dbt ls command and returns the parsed nodes."""
if self.render_config.source_rendering_behavior != SourceRenderingBehavior.NONE:
ls_command = [
dbt_cmd,
"ls",
"--output",
"json",
"--output-keys",
"name unique_id resource_type depends_on original_file_path tags config freshness",
]
else:
ls_command = [dbt_cmd, "ls", "--output", "json"] This change ensures that the |
Hey @was-av, The source node rendering feature is available only for |
@pankajastro thanks for your quick answer. |
@was-av would there be any blocker for you to upgrade from dbt 1.3.2 to 1.5? The source feature should also work with older versions of dbt as long as you use Cosmos When using To support both pre-dbt-1.5 and post-dbt-1.5 interfaces would add an additional performance cost to run Cosmos, since we'd need to find which version of dbt-core the end-user was using - which, when running We're happy to be persuaded otherwise! |
I've had no blockers and upgraded to the last dbt version.
I steel get error
Also, I could not use LoadMode.MANIFEST because it does not support dbt selector @tatiana would you overview the proposal from dosubo with a fix ls_command filling |
I added the source node rendering example in CI #1327, and it works fine. |
@was-av The dbt-core version limitation is caused by an inconsistency in the command. You can find some more details in the discussion |
@was-av Could you please confirm if dbt-core version is >= 1.5.0 on the device/node where cosmos task is running? |
Astronomer Cosmos Version
Other Astronomer Cosmos version (please specify below)
If "Other Astronomer Cosmos version" selected, which one?
1.6.0
dbt-core version
1.3.2
Versions of dbt adapters
dbt-clickhouse==1.3.3
dbt-core==1.3.2
dbt-extractor==0.4.1
LoadMode
AUTOMATIC
ExecutionMode
LOCAL
InvocationMode
DBT_RUNNER
airflow version
2.10.1
Operating System
"Debian GNU/Linux 11 (bullseye)
If a you think it's an UI issue, what browsers are you seeing the problem on?
No response
Deployment
Official Apache Airflow Helm Chart
Deployment details
No response
What happened?
I add sources to Airflow DAG by selecting source_rendering_behavior equal to SourceRenderingBehavior.ALL and get Error described below.
Relevant log output
How to reproduce
Anything else :)?
Error related to code in file cosmos/dbt/graph.py
Options value of --output-keys must added as one string.
Are you willing to submit PR?
Contact Details
[email protected]
The text was updated successfully, but these errors were encountered: