Page Summary
-
A BigQuery field type is defined and can be a simple type, an array type, or a struct type.
-
A StructType defines a struct type and contains an ordered list of StructFields.
-
A StructField is a key-value pair that defines a single struct field with a field name and a field type.
Defines a BigQuery field type.
| JSON representation |
|---|
{ // Union field |
field_type
. Field type. field_type
can be only one of the following:type
string
BigQuery simple type, e.g. 'STRING' or 'INT64'. See https://cloud.google.com/bigquery/docs/reference/standard-sql/data-types .
arrayType
object (
FieldType
)
Type of the array's elements, if this is an 'ARRAY' type.
structType
object (
StructType
)
Struct field type, if this is a 'STRUCT' type.
StructType
Defines a struct type.
| JSON representation |
|---|
{
"fields"
:
[
{
object (
|
| Fields | |
|---|---|
fields[]
|
An ordered list of fields for a given struct. |
StructField
A key-value pair that defines a single struct field.
| JSON representation |
|---|
{
"fieldName"
:
string
,
"fieldType"
:
{
object (
|
| Fields | |
|---|---|
fieldName
|
Field name. |
fieldType
|
Field type. |


