Class ExternalConfig (1.28.2)

ExternalConfig(source_format)

Description of an external data source.

Parameter

Name Description
source_format ExternalSourceFormat

See source_format.

Inheritance

builtins.object > ExternalConfig

Properties

autodetect

bool: If :data:True, try to detect schema and format options automatically.

See https://cloud.google.com/bigquery/docs/reference/rest/v2/tables#ExternalDataConfiguration.FIELDS.autodetect

compression

hive_partitioning

Optional[.external_config.HivePartitioningOptions]: [Beta] When set, it configures hive partitioning support.

See https://cloud.google.com/bigquery/docs/reference/rest/v2/tables#ExternalDataConfiguration.FIELDS.hive_partitioning_options

ignore_unknown_values

bool: If :data:True, extra values that are not represented in the table schema are ignored. Defaults to :data:False.

See https://cloud.google.com/bigquery/docs/reference/rest/v2/tables#ExternalDataConfiguration.FIELDS.ignore_unknown_values

max_bad_records

int: The maximum number of bad records that BigQuery can ignore when reading data.

See https://cloud.google.com/bigquery/docs/reference/rest/v2/tables#ExternalDataConfiguration.FIELDS.max_bad_records

options

Optional[Dict[str, Any]]: Source-specific options.

schema

source_format

source_uris

Methods

from_api_repr

from_api_repr(resource)

Factory: construct an .external_config.ExternalConfig instance given its API representation.

Parameter
Name Description
resource Dict[str, Any]

Definition of an .external_config.ExternalConfig instance in the same representation as is returned from the API.

Returns
Type Description
ExternalConfig Configuration parsed from ``resource``.

to_api_repr

to_api_repr()

Build an API representation of this object.

Returns
Type Description
Dict[str, Any] A dictionary in the format used by the BigQuery API.

__init__

__init__(source_format)

Initialize self. See help(type(self)) for accurate signature.

Except as otherwise noted, the content of this page is licensed under the Creative Commons Attribution 4.0 License, and code samples are licensed under the Apache 2.0 License. For details, see the Google Developers Site Policies. Java is a registered trademark of Oracle and/or its affiliates.

Last updated 2025年10月30日 UTC.