mirror of
https://github.com/scylladb/scylladb.git
synced 2026-06-01 04:26:48 +00:00
This commit allows accepting a CQL request to clear ghost rows from a given view partition range. Currently its syntax is a purposely convoluted mix of existing keywords, which makes sure that the statement is never issued by mistake. Example runs: -- try deleting all ghost rows, effectively performs a paged full scan PRUNE MATERIALIZED VIEW my_mv; -- try deleting ghost rows from a single view partition PRUNE MATERIALIZED VIEW my_mv WHERE mv_pk = 3; -- try deleting ghost rows from a token range (effective full scans) PRUNE MATERIALIZED VIEW my_mv WHERE TOKEN(mv_pk) > 7 AND TOKEN(mv_pk) < 42