Updated on 2026-11-06 GMT+08:00

Refresh Strategies

  • Incremental refresh

    Incremental refresh allows materialized views to be updated by processing only the data that has changed in the source tables, rather than recomputing the entire view. This significantly reduces refresh time and resource consumption for large datasets.

    Using incremental refresh requires that the source tables are Apache Iceberg tables with the Iceberg snapshot feature enabled.

  • Restrictions on incremental refresh
    • Supported aggregate functions: SUM, COUNT(*), COUNT(col), MIN, and MAX
    • Supported joins: INNER JOIN, LEFT OUTER JOIN, RIGHT OUTER JOIN, and FULL OUTER JOIN
    • Supported queries: Simple SELECT (Projection), GROUP BY Aggregation, UNION ALL, and JOIN + Aggregation
    • Unsupported scenarios: The source table is not an Iceberg table, or non-equi JOINs are used.
  • Four refresh strategies
    As shown in the table below, intelligent materialized views support four refresh strategies. The strategy can be specified using the REFRESH POLICY keyword in the CREATE statement. If not specified, the default value is AUTO. The strategy can also be modified after view creation using an ALTER statement.

    Refresh Strategy

    Description

    INCREMENTAL

    Attempts incremental refresh first. Falls back to full refresh if not supported.

    INCREMENTAL STRICT

    Uses only incremental refresh. Reports an error or fails if not supported.

    FULL

    Always performs a full refresh (recomputes the entire view).

    AUTO (Default)

    Prefers incremental refresh. Falls back to full refresh if incremental conditions are not met.