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