View Source GoogleApi.BigQuery.V2.Model.StandardSqlDataType (google_api_big_query v0.79.0)

The data type of a variable such as a function argument. Examples include: INT64: {"typeKind": "INT64"} ARRAY: { "typeKind": "ARRAY", "arrayElementType": {"typeKind": "STRING"} } * STRUCT>: { "typeKind": "STRUCT", "structType": { "fields": [ { "name": "x", "type": {"typeKind": "STRING"} }, { "name": "y", "type": { "typeKind": "ARRAY", "arrayElementType": {"typeKind": "DATE"} } } ] } }

Attributes

  • arrayElementType (type: GoogleApi.BigQuery.V2.Model.StandardSqlDataType.t, default: nil) - The type of the array's elements, if type_kind = "ARRAY".
  • rangeElementType (type: GoogleApi.BigQuery.V2.Model.StandardSqlDataType.t, default: nil) - The type of the range's elements, if type_kind = "RANGE".
  • structType (type: GoogleApi.BigQuery.V2.Model.StandardSqlStructType.t, default: nil) - The fields of this struct, in order, if type_kind = "STRUCT".
  • typeKind (type: String.t, default: nil) - Required. The top level type of this field. Can be any GoogleSQL data type (e.g., "INT64", "DATE", "ARRAY").

Summary

Functions

Unwrap a decoded JSON object into its complex fields.

Types

@type t() :: %GoogleApi.BigQuery.V2.Model.StandardSqlDataType{
  arrayElementType: t() | nil,
  rangeElementType: t() | nil,
  structType: GoogleApi.BigQuery.V2.Model.StandardSqlStructType.t() | nil,
  typeKind: String.t() | nil
}

Functions

@spec decode(struct(), keyword()) :: struct()

Unwrap a decoded JSON object into its complex fields.