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
The current PlanOrderingKey implementation will include the value components of a KeyWithValueExpression within the professed ordering for a plan. This can result in plans that have an incorrect idea as to the order of returned results, which can lead to faulty unions and intersections. From what I can tell, this is not as much of a problem for a single index scan, as that may not need to look at the PlanOrderingKey.
The text was updated successfully, but these errors were encountered:
…y-with-value-expression in order
This removes the value portion of a key-with-value expression from the `PlanOrderingKey` so that we do not attempt to order plans based on fields that do not actually contribute to the ordering of entries.
…s multiple times (#2468)
* Fixes#2462: PlanOrderingKey tripped up if the same expression appears multiple times
This updates the handling for key expressions in `PlanOrderingKey` so that if the same expression appears multiple times, we only match it once.
This fixes#2462.
* Fixes#2469: PlanOrderingKey contains value portion of key-with-value-expression in order
This removes the value portion of a key-with-value expression from the `PlanOrderingKey` so that we do not attempt to order plans based on fields that do not actually contribute to the ordering of entries.
The current
PlanOrderingKey
implementation will include the value components of aKeyWithValueExpression
within the professed ordering for a plan. This can result in plans that have an incorrect idea as to the order of returned results, which can lead to faulty unions and intersections. From what I can tell, this is not as much of a problem for a single index scan, as that may not need to look at thePlanOrderingKey
.The text was updated successfully, but these errors were encountered: