Module Values.PartitionKeySource

An attribute used in partitioning data in a table. A dimension key partitions data using the values of the dimension specified by the dimension-name as partition key, while a measure key partitions data using measure names (values of the 'measure_name' column).

Sourcetype nonrec t = {
  1. type_ : PartitionKeyType.t;
    (*

    The type of the partition key. Options are DIMENSION (dimension key) and MEASURE (measure key).

    *)
  2. name : SchemaName.t option;
    (*

    The name of the attribute used for a dimension key.

    *)
  3. enforcementInRecord : PartitionKeyEnforcementLevel.t option;
    (*

    The level of enforcement for the specification of a dimension key in ingested records. Options are REQUIRED (dimension key must be specified) and OPTIONAL (dimension key does not have to be specified).

    *)
}
Sourceval context_ : string
Sourceval make : ?name:??? -> ?enforcementInRecord:??? -> type_:PartitionKeyType.t -> unit -> t
Sourceval to_value : t -> [> `Structure of (string * [> `Enum of string | `String of SchemaName.t ]) list ]
Sourceval to_query : t -> Awso.Client.Query.t
Sourceval of_xml : Awso.Xml.t -> t
Sourceval of_string : string -> t
Sourceval of_json : Yojson.Safe.t -> t
Sourceval to_json : t -> Yojson.Safe.t