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

dbt_invocations model > job_name column showing up as 'null' #683

Closed
wusanny opened this issue Mar 21, 2024 · 1 comment
Closed

dbt_invocations model > job_name column showing up as 'null' #683

wusanny opened this issue Mar 21, 2024 · 1 comment

Comments

@wusanny
Copy link

wusanny commented Mar 21, 2024

Issue description
Hello, we have a client who is using elementary dbt package in dbt Cloud and reported that they are not getting a value returned for the job_name column in the dbt_invocations model. Entire column just have 'null' values.

We tested and it seemed to be the case for us as well. Are we missing a config somewhere in order to have this value returned?

Steps to reproduce the behavior:

  1. Install the package in dbt Cloud's IDE as per Quick Start instructions here
  2. Run a production job
  3. Query in the datawarehouse (in this case Snowflake) for the dbt_invocations model
  4. See that the job_name column has no value

Screenshots
dbt_invocations   job_name column

Other documents
I have also attached the csv file download of the model here - dbt_invocations (test).csv, for reference.

Additional comments
On elementary docs here, it seems to suggest that these data should automatically populate if we are using an orchestrator that Elementary natively supports (which we are with dbt Cloud).

Version
dbt package version: 0.14.1

Thank you!

@haritamar
Copy link
Collaborator

Hi @wusanny ,
Sorry for only just responding.
By default, dbt Cloud only provides the job ID parameter automatically. If you'd like to also have a JOB_NAME within dbt_invocations, you need to configure it in dbt Cloud in one of the two ways:

  • As the environment variable DBT_JOB_NAME
  • As the dbt var job_name

Thanks,
Itamar

(Also for future reference - we prefer to manage issues in the main Elementary repo, so please open future issues there)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants