destinations.impl.lancedb.schema
Utilities for creating arrow schemas from table schemas.
NULL_SCHEMA
Empty pyarrow Schema with no fields.
make_arrow_field_schema
def make_arrow_field_schema(column_name: str, column: TColumnSchema,
type_mapper: DataTypeMapper) -> TArrowField
Creates a PyArrow field from a dlt column schema.
make_arrow_table_schema
def make_arrow_table_schema(
table_name: str,
schema: Schema,
type_mapper: DataTypeMapper,
id_field_name: Optional[str] = None,
vector_field_name: Optional[str] = None,
embedding_fields: Optional[List[str]] = None,
embedding_model_func: Optional[TextEmbeddingFunction] = None,
embedding_model_dimensions: Optional[int] = None) -> TArrowSchema
Creates a PyArrow schema from a dlt schema.