Class ScriptOptions (3.38.0)

ScriptOptions(
 statement_timeout_ms: typing.Optional[int] = None,
 statement_byte_budget: typing.Optional[int] = None,
 key_result_statement: typing.Optional[
 google.cloud.bigquery.enums.KeyResultStatementKind
 ] = None,
)

Properties

key_result_statement

Determines which statement in the script represents the "key result".

This is used to populate the schema and query results of the script job. Default is KeyResultStatementKind.LAST.

statement_byte_budget

Limit on the number of bytes billed per statement.

Exceeding this budget results in an error.

statement_timeout_ms

Timeout period for each statement in a script.

Methods

from_api_repr

from_api_repr(
 resource: typing.Dict[str, typing.Any],
) -> google.cloud.bigquery.job.query.ScriptOptions

Factory: construct instance from the JSON repr.

Returns
Type Description
google.cloud.bigquery.ScriptOptions ScriptOptions sample parsed from resource.

to_api_repr

to_api_repr() -> typing.Dict[str, typing.Any]

Construct the API resource representation.

Except as otherwise noted, the content of this page is licensed under the Creative Commons Attribution 4.0 License, and code samples are licensed under the Apache 2.0 License. For details, see the Google Developers Site Policies. Java is a registered trademark of Oracle and/or its affiliates.

Last updated 2025年10月30日 UTC.