Note
Access to this page requires authorization. You can try signing in or changing directories.
Access to this page requires authorization. You can try changing directories.
In this article
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.
You must have at least Database Admin permissions to run this command.
.alter-merge
materialized-view
MaterializedViewName policy
partitioning
PolicyObject
Learn more about syntax conventions.
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. |
Change the policy at the materialized view level:
.alter-merge materialized-view MyMaterializeView policy partitioning '{"EffectiveDateTime":"2023-01-01"}'