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

Include query_id in run results for seed #334

Open
1 task done
mdesmet opened this issue Jul 26, 2023 · 1 comment
Open
1 task done

Include query_id in run results for seed #334

mdesmet opened this issue Jul 26, 2023 · 1 comment
Labels
enhancement New feature or request

Comments

@mdesmet
Copy link
Member

mdesmet commented Jul 26, 2023

Describe the feature

Other adapters have the query_id in their run results. It would be beneficial to being able to correlate dbt runs with the executed queries.

Describe alternatives you've considered

No response

Who will benefit?

No response

Are you willing to submit PR?

  • Yes I am willing to submit a PR!
@mdesmet mdesmet added the enhancement New feature or request label Jul 26, 2023
@mdesmet
Copy link
Member Author

mdesmet commented Jul 26, 2023

It is actually working for dbt run but not for dbt seed apparently.

{
      "status": "success",
      "timing": [
        {
          "name": "compile",
          "started_at": "2023-07-26T14:32:36.419577Z",
          "completed_at": "2023-07-26T14:32:36.422394Z"
        },
        {
          "name": "execute",
          "started_at": "2023-07-26T14:32:36.422949Z",
          "completed_at": "2023-07-26T14:32:36.832432Z"
        }
      ],
      "thread_id": "Thread-1",
      "execution_time": 0.41478776931762695,
      "adapter_response": {
        "_message": "SUCCESS",
        "rows_affected": 99,
        "query": "/* {\"app\": \"dbt\", \"dbt_version\": \"1.5.3\", \"profile_name\": \"my_dbt_trino_project\", \"target_name\": \"dev\", \"node_id\": \"model.my_dbt_trino_project.src_orders\"} */\ncreate table datalake.analytics_source.src_orders\n      \n      \n    as (\n      \n\nwith source as (\n\n    select * from webshop.public.orders\n\n),\n\nrenamed as (\n\n    select\n        id as order_id,\n        user_id as customer_id,\n        order_date,\n        status\n\n    from source\n\n)\n\nselect * from renamed\n    )",
        "query_id": "20230726_143236_00024_k6zri"
      },
      "message": "SUCCESS",
      "failures": null,
      "unique_id": "model.my_dbt_trino_project.src_orders"
    },

@mdesmet mdesmet changed the title Include query_id in run results Include query_id in run results for seed Jul 26, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

1 participant