This is the multi-page printable view of this section. Click here to print.

Return to the regular view of this page.

Mirroring policy

1 - Mirroring policy

Learn how to use the mirroring policy.

The mirroring policy commands allow you to view, change, partition, and delete your table mirroring policy. They also provide a way to check the mirroring latency by reviewing the operations mirroring status.

Management commands

The policy object

The mirroring policy includes the following properties:

PropertyDescriptionValuesDefault
FormatThe format of your mirrored files.Valid value is parquet.parquet
ConnectionStringsAn array of connection strings that help configure and establish connections. This value is autopopulated.
IsEnabledDetermines whether the mirroring policy is enabled. When the mirroring policy is disabled and set to false, the underlying mirroring data is retained in the database.true, false, null.null
PartitionsA comma-separated list of columns used to divide the data into smaller partitions.See Partitions formatting.

Data types mapping

To ensure compatibility and optimize queries, ensure that your data types are properly mapped to the parquet data types.

Event house to Delta parquet data types mapping

Event house data types are mapped to Delta Parquet data types using the following rules:

Event house data typeDelta data type
boolboolean
datetimetimestamp OR date (for date-bound partition definitions)
dynamicstring
guidstring
intinteger
longlong
realdouble
stringstring
timespanlong
decimaldecimal(38,18)

For more information on Event house data types, see Scalar data types.

Example policy

{
  "Format": "parquet",
  "IsEnabled": true,
  "Partitions": null,
}