Module query

BigQuery query processing.

Classes

ArrayQueryParameter

ArrayQueryParameter(name, array_type, values)

Named / positional query parameters for array values.

ArrayQueryParameterType

ArrayQueryParameterType(array_type, *, name=None, description=None)

Type representation for array query parameters.

ConnectionProperty

ConnectionProperty(key: str = "", value: str = "")

A connection-level property to customize query behavior.

See https://cloud.google.com/bigquery/docs/reference/rest/v2/ConnectionProperty

ScalarQueryParameter

ScalarQueryParameter(
    name: Optional[str],
    type_: Optional[Union[str, google.cloud.bigquery.query.ScalarQueryParameterType]],
    value: Optional[
        Union[str, int, float, decimal.Decimal, bool, datetime.datetime, datetime.date]
    ],
)

Named / positional query parameters for scalar values.

ScalarQueryParameterType

ScalarQueryParameterType(type_, *, name=None, description=None)

Type representation for scalar query parameters.

StructQueryParameter

StructQueryParameter(name, *sub_params)

Named / positional query parameters for struct values.

StructQueryParameterType

StructQueryParameterType(*fields, name=None, description=None)

Type representation for struct query parameters.

UDFResource

UDFResource(udf_type, value)

Describe a single user-defined function (UDF) resource.