Scheamas for BigQuery tables / queries.

class, field_type, mode='NULLABLE', description=None, fields=None)[source]#

Bases: object

Describe a single field within a table schema.

  • name (str) – the name of the field.
  • field_type (str) – the type of the field (one of ‘STRING’, ‘INTEGER’, ‘FLOAT’, ‘BOOLEAN’, ‘TIMESTAMP’ or ‘RECORD’).
  • mode (str) – the type of the field (one of ‘NULLABLE’, ‘REQUIRED’, or ‘REPEATED’).
  • description (str) – optional description for the field.
  • fields (list of SchemaField, or None) – subfields (requires field_type of ‘RECORD’).