Skip to content

fix: adding in run_id injection#5893

Open
cmgoffena13 wants to merge 3 commits into
SQLMesh:mainfrom
cmgoffena13:fix/run-id-injection
Open

fix: adding in run_id injection#5893
cmgoffena13 wants to merge 3 commits into
SQLMesh:mainfrom
cmgoffena13:fix/run-id-injection

Conversation

@cmgoffena13

Copy link
Copy Markdown
Contributor

Description

Adding in run_id injection to the run command, similar to how plan_id is injected into queries. Identifies SQLMesh triggered queries.

Test Plan

Added in test similar to the plan_id injection test ("test_plan_evaluator_correlation_id")

Checklist

  • I have run make style and fixed any issues
  • I have added tests for my changes (if applicable)
  • All existing tests pass (make fast-test)
  • My commits are signed off (git commit -s) per the DCO

cmgoffena13 and others added 3 commits July 8, 2026 21:35
Signed-off-by: Cortland Goffena <30168413+cmgoffena13@users.noreply.github.com>
Signed-off-by: Cortland Goffena <30168413+cmgoffena13@users.noreply.github.com>
@mday-io

mday-io commented Jul 9, 2026

Copy link
Copy Markdown
Collaborator

Looks good to me. The new ctx.run() integration test covers the main SQL comment behavior.

Optional follow-up: add BigQuery-specific coverage too, since BigQuery also exposes correlation IDs as job labels and there is already similar coverage for plan_id labels.

@mday-io mday-io self-requested a review July 9, 2026 06:29
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

Successfully merging this pull request may close these issues.

2 participants