Skip to content

Commit 2c8bca2

Browse files
committed
update docstring formatting
1 parent b2a5308 commit 2c8bca2

File tree

2 files changed

+9
-7
lines changed

2 files changed

+9
-7
lines changed

google/cloud/bigquery/external_config.py

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -505,10 +505,11 @@ def source_column_match(self) -> Optional[str]:
505505
autodetect is used, then columns are matched by name. Otherwise, columns
506506
are matched by position. This is done to keep the behavior
507507
backward-compatible.
508+
508509
Acceptable values are:
509-
POSITION - matches by position. This assumes that the columns are ordered
510-
the same way as the schema.
511-
NAME - matches by name. This reads the header row as column names and
510+
POSITION - matches by position. This assumes that the columns are ordered
511+
the same way as the schema.
512+
NAME - matches by name. This reads the header row as column names and
512513
reorders columns to match the field names in the schema.
513514
514515
See

google/cloud/bigquery/job/load.py

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -648,11 +648,12 @@ def source_column_match(self) -> Optional[SourceColumnMatch]:
648648
loaded columns to the schema. If not set, a sensible default is chosen based on how the schema
649649
is provided. If autodetect is used, then columns are matched by name. Otherwise, columns
650650
are matched by position. This is done to keep the behavior backward-compatible.
651+
651652
Acceptable values are:
652-
POSITION - matches by position. This assumes that the columns are ordered
653-
the same way as the schema.
654-
NAME - matches by name. This reads the header row as column names and
655-
reorders columns to match the field names in the schema.
653+
POSITION - matches by position. This assumes that the columns are ordered
654+
the same way as the schema.
655+
NAME - matches by name. This reads the header row as column names and
656+
reorders columns to match the field names in the schema.
656657
657658
See:
658659
https://cloud.google.com/bigquery/docs/reference/rest/v2/Job#JobConfigurationLoad.FIELDS.source_column_match

0 commit comments

Comments
 (0)