Skip to content
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

Running dbt_external_tables under Airflow causing error with incorrect YAML format #283

Open
lukasz-wiesek opened this issue Apr 11, 2024 · 2 comments
Labels
bug Something isn't working Stale

Comments

@lukasz-wiesek
Copy link

Hello, I am running dbt with dbt_external_tables package under Composer (v2.4.3). When I am passing arguments to my class to build DBT command like:
dbt run-operation stage_external_sources --args 'select: external_sources.abc_full' --target dev --profile abc_seg
this command gives me an error:
[2024-04-11, 12:06:53 UTC] {pod_manager.py:382} INFO - �[0m12:06:53 The YAML provided in the --args argument is not valid. [2024-04-11, 12:06:53 UTC] {pod_manager.py:382} INFO - Usage: dbt run-operation [OPTIONS] MACRO [2024-04-11, 12:06:53 UTC] {pod_manager.py:382} INFO - Try 'dbt run-operation -h' for help. [2024-04-11, 12:06:53 UTC] {pod_manager.py:382} INFO - [2024-04-11, 12:06:53 UTC] {pod_manager.py:382} INFO - Error: Invalid value for '--args': String ''select:' is not valid YAML

I was trying to use curly braces like: --args '{select: external_sources.abc_full}' but it is not resolving an issue. When I am running this command without "--args" just pure macro stage_external_sources it is working perfectly even under Composer.
How I can resolve issue with this?

@lukasz-wiesek lukasz-wiesek added bug Something isn't working triage labels Apr 11, 2024
@dataders
Copy link
Collaborator

@lukasz-wiesek this is strange for sure! Shot in the dark: try double quoting (") the string?

@dataders dataders removed the triage label Apr 11, 2024
Copy link

github-actions bot commented Oct 9, 2024

This issue has been marked as Stale because it has been open for 180 days with no activity. If you would like the issue to remain open, please comment on the issue or else it will be closed in 7 days.

@github-actions github-actions bot added the Stale label Oct 9, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working Stale
Projects
None yet
Development

No branches or pull requests

2 participants