Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge 'Invalidate prepared statements for views when their schema cha…
…nges.' from Eliran Sinvani When a base table changes and altered, so does the views that might refer to the added column (which includes "SELECT *" views and also views that might need to use this column for rows lifetime (virtual columns). However the query processor implementation for views change notification was an empty function. Since views are tables, the query processor needs to at least treat them as such (and maybe in the future, do also some MV specific stuff). This commit adds a call to `on_update_column_family` from within `on_update_view`. The side effect true to this date is that prepared statements for views which changed due to a base table change will be invalidated. Fixes #16392 This series also adds a test which fails without this fix and passes when the fix is applied. Closes #16897 * github.com:scylladb/scylladb: Add test for mv prepared statements invalidation on base alter query processor: treat view changes at least as table changes (cherry picked from commit 5810396)
- Loading branch information