.alter-merge materialized-view policy partitioning command

Applies to: ✅ Azure Data Explorer

Creates the materialized view's partitioning policy. The partitioning policy defines if and how extents (data shards) should be partitioned for a specific table or a materialized view.

Permissions

You must have at least Database Admin permissions to run this command.

Syntax

.alter-merge materialized-view MaterializedViewName policy partitioning PolicyObject

Learn more about syntax conventions.

Parameters

Name Type Required Description
MaterializedViewName string ✔️ The name of the materialized view.
PolicyObject string ✔️ A serialized array of one or more JSON policy objects. For more information, see partitioning policy.

Example

Change the policy at the materialized view level:

.alter-merge materialized-view MyMaterializeView policy partitioning '{"EffectiveDateTime":"2023-01-01"}'