You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
In BuildGroupedRows, after building the leaf children for each intermediate row, the code now picks the QueryText from the top representative leaf row (the one with IsTopRepresentative == true, falling back to the first available leaf) and assigns it to the parent's QueryStorePlan.QueryText. This is done at two levels:
1. Intermediate rows (PlanHash in QueryHash mode, QueryHash in Module mode): Gets the query text from the top representative leaf within that specific group.
2. Root rows (QueryHash level, Module level): Gets the query text from the top representative leaf across all leaves in that root group.
No additional database queries are made — the text comes entirely from grouped.LeafRows which was already fetched.
0 commit comments