Skip to content

sp_QuickieStore: fix @find_high_impact step ordering#710

Merged
erikdarlingdata merged 1 commit intodevfrom
fix/hi-staging-order
Mar 24, 2026
Merged

sp_QuickieStore: fix @find_high_impact step ordering#710
erikdarlingdata merged 1 commit intodevfrom
fix/hi-staging-order

Conversation

@erikdarlingdata
Copy link
Copy Markdown
Owner

Summary

Fixes NULL primary_window, query_id_list, and empty query_sql_text caused by query_id staging running before #hi_interesting was populated. Moved staging + representative text to after scoring step.

Test plan

  • SQL2022 — all columns populated
  • SQL2016 — all columns populated

🤖 Generated with Claude Code

…un after #hi_interesting

Steps 2b/2c (query_id staging + representative text) were placed before
Step 2 (top N → #hi_interesting), so #hi_id_staging_queries joined an
empty #hi_interesting table. This caused NULL primary_window,
query_id_list, and empty query_sql_text.

Moved Steps 3b/3c to after Step 3 (scoring) where #hi_interesting is
populated.

Tested on SQL2022 and SQL2016 — all columns populated correctly.

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
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.

1 participant