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 some cases, the optimizer does not (or cannot) generate the plan choice specified by a hint. The framework should detect and reject/discard the plans that don't match the hint set.
Unfollowed/follow-able hints typically show up as the disable_cost (10000000000.00) added, but I am not sure whether that's a reliable indication. Since it would be cumbersome and tricky to examine each plan by the script, I think it's okay to look for the very high costs until we find the cases that require other detection mechanism.
Examples:
IndexScan is not considered without an eligible index access predicate or ORDER BY on the range key prefix. The optimizer considers IndexOnlyScan when applicable without the access key or result ordering benefits, however.
mtakahar
changed the title
Detect and reject the plans that did not (or was not able to) follow the hints
The hint set sometimes do not match the actual plan
May 15, 2023
In some cases, the optimizer does not (or cannot) generate the plan choice specified by a hint. The framework should detect and reject/discard the plans that don't match the hint set.
Unfollowed/follow-able hints typically show up as the
disable_cost
(10000000000.00) added, but I am not sure whether that's a reliable indication. Since it would be cumbersome and tricky to examine each plan by the script, I think it's okay to look for the very high costs until we find the cases that require other detection mechanism.Examples:
t10000w
in the Leading hint.ANY_subquery
alias in place oft10000w
. (I'll create a separate issue for this as an enhancement request.):Test case
Please see the model tarball attached to the issue #2
The text was updated successfully, but these errors were encountered: