google_api_big_query v0.16.0 GoogleApi.BigQuery.V2.Model.ExternalDataConfiguration View Source

Attributes

  • autodetect (type: boolean(), default: nil) - Try to detect schema and format options automatically. Any option specified explicitly will be honored.
  • bigtableOptions (type: GoogleApi.BigQuery.V2.Model.BigtableOptions.t, default: nil) - [Optional] Additional options if sourceFormat is set to BIGTABLE.
  • compression (type: String.t, default: nil) - [Optional] The compression type of the data source. Possible values include GZIP and NONE. The default value is NONE. This setting is ignored for Google Cloud Bigtable, Google Cloud Datastore backups and Avro formats.
  • csvOptions (type: GoogleApi.BigQuery.V2.Model.CsvOptions.t, default: nil) - Additional properties to set if sourceFormat is set to CSV.
  • googleSheetsOptions (type: GoogleApi.BigQuery.V2.Model.GoogleSheetsOptions.t, default: nil) - [Optional] Additional options if sourceFormat is set to GOOGLE_SHEETS.
  • hivePartitioningMode (type: String.t, default: nil) - [Optional, Trusted Tester] If hive partitioning is enabled, which mode to use. Two modes are supported: - AUTO: automatically infer partition key name(s) and type(s). - STRINGS: automatic infer partition key name(s). All types are strings. Not all storage formats support hive partitioning -- requesting hive partitioning on an unsupported format will lead to an error. Note: this setting is in the process of being deprecated in favor of hivePartitioningOptions.
  • hivePartitioningOptions (type: GoogleApi.BigQuery.V2.Model.HivePartitioningOptions.t, default: nil) - [Optional, Trusted Tester] Options to configure hive partitioning support.
  • ignoreUnknownValues (type: boolean(), default: nil) - [Optional] Indicates if BigQuery should allow extra values that are not represented in the table schema. If true, the extra values are ignored. If false, records with extra columns are treated as bad records, and if there are too many bad records, an invalid error is returned in the job result. The default value is false. The sourceFormat property determines what BigQuery treats as an extra value: CSV: Trailing columns JSON: Named values that don't match any column names Google Cloud Bigtable: This setting is ignored. Google Cloud Datastore backups: This setting is ignored. Avro: This setting is ignored.
  • maxBadRecords (type: integer(), default: nil) - [Optional] The maximum number of bad records that BigQuery can ignore when reading data. If the number of bad records exceeds this value, an invalid error is returned in the job result. This is only valid for CSV, JSON, and Google Sheets. The default value is 0, which requires that all records are valid. This setting is ignored for Google Cloud Bigtable, Google Cloud Datastore backups and Avro formats.
  • schema (type: GoogleApi.BigQuery.V2.Model.TableSchema.t, default: nil) - [Optional] The schema for the data. Schema is required for CSV and JSON formats. Schema is disallowed for Google Cloud Bigtable, Cloud Datastore backups, and Avro formats.
  • sourceFormat (type: String.t, default: nil) - [Required] The data format. For CSV files, specify "CSV". For Google sheets, specify "GOOGLE_SHEETS". For newline-delimited JSON, specify "NEWLINE_DELIMITED_JSON". For Avro files, specify "AVRO". For Google Cloud Datastore backups, specify "DATASTORE_BACKUP". [Beta] For Google Cloud Bigtable, specify "BIGTABLE".
  • sourceUris (type: list(String.t), default: nil) - [Required] The fully-qualified URIs that point to your data in Google Cloud. For Google Cloud Storage URIs: Each URI can contain one '' wildcard character and it must come after the 'bucket' name. Size limits related to load jobs apply to external data sources. For Google Cloud Bigtable URIs: Exactly one URI can be specified and it has be a fully specified and valid HTTPS URL for a Google Cloud Bigtable table. For Google Cloud Datastore backups, exactly one URI can be specified. Also, the '' wildcard character is not allowed.

Link to this section Summary

Functions

Unwrap a decoded JSON object into its complex fields.

Link to this section Types

Link to this type

t() View Source
t() :: %GoogleApi.BigQuery.V2.Model.ExternalDataConfiguration{
  autodetect: boolean(),
  bigtableOptions: GoogleApi.BigQuery.V2.Model.BigtableOptions.t(),
  compression: String.t(),
  csvOptions: GoogleApi.BigQuery.V2.Model.CsvOptions.t(),
  googleSheetsOptions: GoogleApi.BigQuery.V2.Model.GoogleSheetsOptions.t(),
  hivePartitioningMode: String.t(),
  hivePartitioningOptions:
    GoogleApi.BigQuery.V2.Model.HivePartitioningOptions.t(),
  ignoreUnknownValues: boolean(),
  maxBadRecords: integer(),
  schema: GoogleApi.BigQuery.V2.Model.TableSchema.t(),
  sourceFormat: String.t(),
  sourceUris: [String.t()]
}

Link to this section Functions

Link to this function

decode(value, options) View Source
decode(struct(), keyword()) :: struct()

Unwrap a decoded JSON object into its complex fields.