Module Values.SchemaV2FieldSource

Contains details about a schema field in the V2 format. This field format supports nested and complex data types such as struct, list, and map, in addition to primitive types.

Sourcetype nonrec t = {
  1. id : Integer.t;
    (*

    The unique identifier for the schema field. Field IDs are used by Apache Iceberg to track schema evolution and maintain compatibility across schema changes.

    *)
  2. name : String_.t;
    (*

    The name of the field.

    *)
  3. type_ : Document.t;
    (*

    The data type of the field. This can be a primitive type string such as boolean, int, long, float, double, string, binary, date, timestamp, or timestamptz, or a complex type represented as a JSON object for nested types such as struct, list, or map. For more information, see the Apache Iceberg schemas and data types documentation.

    *)
  4. required : Boolean.t;
    (*

    A Boolean value that specifies whether values are required for each row in this field. If this is true, the field does not allow null values.

    *)
  5. doc : String_.t option;
    (*

    An optional description of the field.

    *)
}
Sourceval context_ : string
Sourceval make : ?doc:??? -> id:Integer.t -> name:String_.t -> type_:Document.t -> required:Boolean.t -> unit -> t
Sourceval to_value : t -> [> `Structure of (string * [> `Boolean of Boolean.t | `Integer of Integer.t | `String of String_.t | `Structure of 'a 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