Skip to content

FieldDescriptor

Defined in: types/schema.ts:19

Metadata for a single column: its name, type, nullability, and any free-form key/value annotations.

Mirrors Spark’s StructField. Used inside Schema and returned by DataFrame.schema().

dataType: DataType;

Defined in: types/schema.ts:23

Spark data type for the column.


optional metadata?: Record<string, string>;

Defined in: types/schema.ts:27

Optional free-form metadata attached to the field.


name: string;

Defined in: types/schema.ts:21

Column name.


nullable: boolean;

Defined in: types/schema.ts:25

Whether the column accepts null values.