Repository navigation
Conversation
Document the materialized view changes of questdb/questdb#8452. New pages for ALTER MATERIALIZED VIEW ADD COLUMN, DROP COLUMN, AS (with WITH BASE) and DROP PARTITION. The concepts page explains how refresh maps query columns to view columns by name, which base table changes keep a view valid, the rows it keeps after base rows go away, recovery with REFRESH ... RESUME [SKIP BACKLOG], workflows to add, drop and rename view columns, and backfill past the REFRESH LIMIT with its rules, period view cap and timing caveats. CREATE MATERIALIZED VIEW documents the column list and the explicit column name rules. REFRESH documents RESUME, FULL keeping rows past the limit, and RANGE failures that keep the view valid. SET REFRESH LIMIT documents the data-anchored boundary and the rule that a period view's limit covers LENGTH plus DELAY plus the zone's DST step, which the wall-clock setting does not lift. Adds the new materialized_views() columns, the wall-clock setting, the Enterprise ALTER MATERIALIZED VIEW and INSERT INTO MATERIALIZED VIEW permissions, upgrade notes and SHOW CREATE column list output. Also corrects the Enterprise permissions that several ALTER MATERIALIZED VIEW pages listed as ALTER MATERIALIZED VIEW, which did not exist as a permission before this change.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Documents questdb/questdb#8452.
ALTER MATERIALIZED VIEWADD COLUMN,DROP COLUMN,AS(withWITH BASE) andDROP PARTITION.REFRESH ... RESUME [SKIP BACKLOG]is documented as the way to recover an invalid view.REFRESH LIMIT:backfill_max_ts, whole-commit refusals, ILP/TCP silent drops, period view cap, timing caveats.REFRESH LIMITmust coverLENGTHplusDELAYplus the zone's DST step; the wall-clock setting does not lift it.CREATE MATERIALIZED VIEWcolumn list and the explicit column name rules, with breaking change notes.REFRESH ... FULLkeeping rows older than the limit, and failedRANGErefreshes keeping the view valid.materialized_views()columns,cairo.mat.view.refresh.limit.wall.clock.enabled, andSHOW CREATEcolumn list output.ALTER MATERIALIZED VIEWandINSERT INTO MATERIALIZED VIEWpermissions, and their upgrade migration.ALTER ... ASor viewDROP PARTITION, no downgrade after view column changes.ADD INDEX,DROP INDEX,SET EXPIRE,SET REFRESHandSET REFRESH LIMITpages.The pages name QuestDB 10.3.0 and QuestDB Enterprise 4.3.0 as the first versions with these changes; update them if the release takes other numbers. Merge after questdb/questdb#8452.