Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

discard feedbacks from delete / update statements #17438

Closed
eurekaka opened this issue May 27, 2020 · 1 comment · Fixed by #17452, #17840, #17841, #17842 or #17843
Closed

discard feedbacks from delete / update statements #17438

eurekaka opened this issue May 27, 2020 · 1 comment · Fixed by #17452, #17840, #17841, #17842 or #17843
Assignees
Labels
Milestone

Comments

@eurekaka
Copy link
Contributor

Development Task

Currently, we store feedbacks of a query into SessionStatsCollector in the Close method of IndexReaderExec / TableReaderExec / IndexLookupReaderExec, so for queries like delete 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. For update, the updated columns may be covered by the filter, or not covered, for simplicity, we skip storing feedbacks for update as well.

@SunRunAway
Copy link
Contributor

@eurekaka Please cherry-pick the related PR.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment