discard feedbacks from delete
/ update
statements
#17438
Labels
component/statistics
epic/query-feedback-GA
type/enhancement
The issue or PR belongs to an enhancement.
Milestone
Development Task
Currently, we store feedbacks of a query into
SessionStatsCollector
in theClose
method ofIndexReaderExec
/TableReaderExec
/IndexLookupReaderExec
, so for queries likedelete from t where a > 1
, the feedbacks of range(1, +inf)
would be stored as well, but those rows are deleted by this query actually, i.e, those feedbacks are obsolete when they are generated.Skip storing feedbacks from
delete
. Forupdate
, the updated columns may be covered by the filter, or not covered, for simplicity, we skip storing feedbacks forupdate
as well.The text was updated successfully, but these errors were encountered: