Skip to content

Fix table variable warnings on modification operators#513

Merged
erikdarlingdata merged 1 commit intodevfrom
fix/table-variable-warnings
Mar 10, 2026
Merged

Fix table variable warnings on modification operators#513
erikdarlingdata merged 1 commit intodevfrom
fix/table-variable-warnings

Conversation

@erikdarlingdata
Copy link
Owner

Summary

  • Node-level Rule 22: Insert/Update/Delete on table variables now shows Critical "forces serial" warning instead of generic "lacks statistics"
  • Statement-level Rule 22: stats warning only fires when reading from a table variable, not modifying it

Synced from PerformanceStudio.

Test plan

  • Verified in Performance Studio with table-variable-red-flags.sqlplan

🤖 Generated with Claude Code

Node-level: Insert/Update/Delete on table variables now shows Critical
"forces serial" warning instead of generic "lacks statistics" message.
Statement-level: stats warning only fires when reading, not modifying.

Synced from PerformanceStudio.

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
@erikdarlingdata erikdarlingdata merged commit 6004b31 into dev Mar 10, 2026
3 checks passed
@erikdarlingdata erikdarlingdata deleted the fix/table-variable-warnings branch March 10, 2026 19:07
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