-
Notifications
You must be signed in to change notification settings - Fork 431
Correct partitions formatting section in mirroring policy documentation #2842
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Changes from 1 commit
393794a
bdbe451
cf627c7
393b88e
9706641
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -30,7 +30,15 @@ Changes the tables's [mirroring policy](mirroring-policy.md). The mirroring poli | |
| |*Partitions*| string| | A comma-separated list of columns used to divide the data into smaller partitions. See [Partitions formatting](#partitions-formatting). | | ||
| | *propertyName*, *propertyValue* | `string` | | A comma-separated list of key-value property pairs. See [supported properties](#supported-properties).| | ||
|
|
||
| [!INCLUDE [partitions-formatting](../includes/partitions-formatting.md)] | ||
| ## Partitions formatting | ||
|
|
||
| The partitions list is any combination of partition columns, specified using one of the forms shown in the following table. | ||
|
|
||
| |Partition Type|Syntax|Notes| | ||
| |--|--|--| | ||
| |String column value|*PartitionName* `:` `string` `=` *ColumnName*|| | ||
| |Truncated datetime column (value)|*PartitionName* `:` `datetime` `=` (`startofyear` \| `startofmonth` \| `startofweek` \| `startofday`) `(` *ColumnName* `)`|See documentation on [startofyear](../query/startofyear-function.md), [startofmonth](../query/startofmonth-function.md), [startofweek](../query/startofweek-function.md), or [startofday](../query/startofday-function.md) functions.| | ||
|
||
| |Truncated Datetime Column Value `=` `bin` `(` *ColumnName* `,` *TimeSpan* `)`|Read more about the [bin](../query/bin-function.md) function.|| | ||
|
||
|
|
||
| > [!NOTE] | ||
| > Each partition is represented as a separate column using the *PartitionName* listed in the *Partitions* list. *PartitionName* must be a case insensitive unique string, both among other partition names and the column names of the mirrored table. | ||
|
|
||
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This section inlines partitions formatting that previously came from a shared include (
../includes/partitions-formatting.md), which is still used by other docs (for example,management/mirroring-policy.md). Duplicating the content here increases the chance the formatting guidance drifts between pages. Consider restoring the include (and updating the include itself if the guidance needs correction), or creating a mirroring-specific include and using it consistently across mirroring docs.