ColumnOverrides

pydantic model felis.datamodel.ColumnOverrides

Allowed overrides for a referenced column.

Notes

All of these fields are optional. Values of None may be explicitly set to override the corresponding attribute in the referenced column but only for certain fields (see validation in _check_non_nullable_overrides).

Parameters:

data (Any)

Fields:
Validators:
field datatype: DataType | None = None

New datatype for the column.

Validated by:
field description: str | None = None

New description for the column.

Validated by:
  • _check_non_nullable_overrides

field length: int | None = None

New length for the column.

Validated by:
  • _check_non_nullable_overrides

field nullable: bool | None = None

New nullable flag for the column.

Validated by:
  • _check_non_nullable_overrides

field tap_column_index: int | None = None (alias 'tap:column_index')

Override for the TAP_SCHEMA column index.

Validated by:
  • _check_non_nullable_overrides

field tap_principal: int | None = None (alias 'tap:principal')

Override for the TAP_SCHEMA ‘principal’ flag.

Validated by:
  • _check_non_nullable_overrides

validator deserialize_datatype  »  datatype

Convert string back into DataType when loading from JSON/YAML.

Parameters:

value (str | None) – The string value to deserialize, or None.

Returns:

The deserialized DataType value, or None if the input was None.

Return type:

DataType | None

serialize_datatype(value)

Convert DataType to string when serializing to JSON/YAML.

Parameters:

value (DataType | None) – The DataType value to serialize, or None.

Returns:

The serialized DataType value, or None if the input was None.

Return type:

str | None