validate_column_in_bq_schema#
- langchain_google_community.bq_storage_vectorstores.utils.validate_column_in_bq_schema(columns: dict, column_name: str, expected_types: list, expected_modes: list) None [source]#
Validates a column within a BigQuery schema.
- Parameters:
columns (dict) β A dictionary of BigQuery SchemaField objects representing
schema. (the table)
column_name (str) β The name of the column to validate.
expected_types (list) β A list of acceptable data types for the column.
expected_modes (list) β A list of acceptable modes for the column.
- Raises:
ValueError β If the column doesnβt exist, has an unacceptable type,
or has an unacceptable mode. β
- Return type:
None