إشعار
يتطلب الوصول إلى هذه الصفحة تخويلاً. يمكنك محاولة تسجيل الدخول أو تغيير الدلائل.
يتطلب الوصول إلى هذه الصفحة تخويلاً. يمكنك محاولة تغيير الدلائل.
Applies to:
Databricks SQL
Databricks Runtime
Important
This feature is in Beta. Workspace admins can control access to this feature from the Previews page. See Manage Azure Databricks previews.
Provides information about whether a query can be incrementalized when being refreshed for a materialized view.
To learn about materialized view incrementalization, see Incremental refresh for materialized views.
Important
EXPLAIN CREATE MATERIALIZED VIEW confirms structural eligibility for incrementalization. It does not guarantee an incremental refresh will be executed when using the AUTO policy. In that mode, the cost model still chooses a full recompute at runtime if factors like changeset size make a full refresh cheaper. The REFRESH POLICY INCREMENTAL and REFRESH POLICY INCREMENTAL STRICT policies override this cost model decision.
Syntax
EXPLAIN [CREATE MATERIALIZED VIEW query]
Parameters
query
A SQL query that creates a materialized view. Any query that creates a materialized view can be used, by prepending
EXPLAINto the query.Note
CREATE MATERIALIZED VIEWqueries from Lakeflow Spark Declarative Pipelines may not work withEXPLAINwithout update. For example:- Expectations (
CONSTRAINT...EXPECTclauses) must be removed from the query. - Source datasets may need to be qualified with a catalog, schema, or other path that is not needed when run in the context of a pipeline.
- Expectations (
Examples
EXPLAIN CREATE MATERIALIZED VIEW foo
AS
select k, sum(v) from source.src_schema.table group by k;
== Incremental Update Eligibility ==
The Materialized View can be incrementally refreshed.
== Detailed Incrementalization Info ==
No issues detected.
== Physical Plan ==
...