Module Values.IcebergSchemaV2Source

Contains details about the schema for an Iceberg table using the V2 format. This schema format supports nested and complex data types such as struct, list, and map, in addition to primitive types.

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

    The type of the top-level schema, which is always a struct type as defined in the Apache Iceberg specification. This value must be struct.

    *)
  2. fields : SchemaV2FieldList.t;
    (*

    The schema fields for the table. Each field defines a column in the table, including its name, type, and whether it is required.

    *)
  3. schemaId : Integer.t option;
    (*

    An optional unique identifier for the schema. Schema IDs are used by Apache Iceberg to track schema evolution.

    *)
  4. identifierFieldIds : IntegerList.t option;
    (*

    A list of field IDs that are used as the identifier fields for the table. Identifier fields uniquely identify a row in the table.

    *)
}
Sourceval context_ : string
Sourceval make : ?schemaId:??? -> ?identifierFieldIds:??? -> type_:SchemaV2FieldType.t -> fields:SchemaV2FieldList.t -> unit -> t
Sourceval to_value : t -> [> `Structure of (string * [> `Enum of string | `Integer of Integer.t | `List of [> `Integer of Integer.t | `Structure of (string * [> `Boolean of Boolean.t | `Integer of Integer.t | `String of String_.t | `Structure of 'a list ]) list ] list ]) 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