Skip to content

MatchSchemaConfig ​

Namespace: Polars.FSharp

Configuration for schema matching policies during a MatchToSchema operation. Provides fine-grained control over how missing columns, struct fields, and type castings are handled.

Properties & Indexers ​

PropertyTypeDescription
DefaultMatchSchemaConfigCreates a default schema matching configuration.
ExtraStructFieldsExtraColumnsPolicyPolicy for handling extra fields within nested Struct columns that are not in the target schema.
FloatCastUpcastOrForbidPolicy for handling floating-point type casting.
IntegerCastUpcastOrForbidPolicy for handling integer type casting.
MissingColumnsMissingColumnActionPolicy for handling top-level columns present in the target schema but missing in the frame.
MissingStructFieldsMissingColumnsPolicyPolicy for handling missing fields within nested Struct columns.

Constructors & Static Methods ​

new ​

fsharp
new(
    missingColumns: MissingColumnAction,
    missingStructFields: MissingColumnsPolicy,
    extraStructFields: ExtraColumnsPolicy,
    integerCast: UpcastOrForbid,
    floatCast: UpcastOrForbid
) : MatchSchemaConfig

Parameters

NameTypeDescription
missingColumnsMissingColumnAction-
missingStructFieldsMissingColumnsPolicy-
extraStructFieldsExtraColumnsPolicy-
integerCastUpcastOrForbid-
floatCastUpcastOrForbid-

Released under the MIT License. Powered by the Polars Rust core & Apache Arrow.