sourceColumnMatch property

String? sourceColumnMatch
getter/setter pair

Controls the strategy used to match loaded columns to the schema.

If not set, a sensible default is chosen based on how the schema is provided. If autodetect is used, then columns are matched by name. Otherwise, columns are matched by position. This is done to keep the behavior backward-compatible.

Optional. Possible string values are:

  • "SOURCE_COLUMN_MATCH_UNSPECIFIED" : Uses sensible defaults based on how the schema is provided. If autodetect is used, then columns are matched by name. Otherwise, columns are matched by position. This is done to keep the behavior backward-compatible.
  • "POSITION" : Matches by position. This assumes that the columns are ordered the same way as the schema.
  • "NAME" : Matches by name. This reads the header row as column names and reorders columns to match the field names in the schema.

Implementation

core.String? sourceColumnMatch;