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
sql: add parseHint step when loading hint into hints cache
When loading an external statement hint into the statement hints cache,
we might need to call some function to get the hint ready for use. (For
hint injections, this function is `tree.NewHintInjectionDonor` which
parses and walks the donor statement fingerprint.) This function could
fail, in which case we want to skip over the hint but not return an
error from `GetStatementHintsFromDB`. This function could succeed but
create some extra state which we need to save.
This commit adds a new `parseHint` step which calls any functions needed
to get the hint ready, and creates a new `hints.Hint` struct which holds
the object(s) created when parsing hints. (These are analogous to
`parseStats` and `TableStatistic` from the stats cache.)
Informs: #153633
Release note: None
0 commit comments