As of January 1, 2020 this library no longer supports Python 2 on the latest released version. Library versions released prior to that date will continue to be available. For more information please visit Python 2 support on Google Cloud.

google.cloud.bigquery.enums.StandardSqlDataTypes

class google.cloud.bigquery.enums.StandardSqlDataTypes(value)

An Enum of scalar SQL types.

INT64

Encoded as a string in decimal format.

Type

int

BOOL

Encoded as a boolean “false” or “true”.

Type

int

FLOAT64

Encoded as a number, or string “NaN”, “Infinity” or “-Infinity”.

Type

int

STRING

Encoded as a string value.

Type

int

BYTES

Encoded as a base64 string per RFC 4648, section 4.

Type

int

TIMESTAMP

Encoded as an RFC 3339 timestamp with mandatory “Z” time zone string:

Type

int

1985-04-12T23

20:50.52Z

DATE

Encoded as RFC 3339 full-date format string: 1985-04-12

Type

int

TIME

Encoded as RFC 3339 partial-time format string: 23:20:50.52

Type

int

DATETIME

Encoded as RFC 3339 full-date “T” partial-time: 1985-04-12T23:20:50.52

Type

int

GEOGRAPHY

Encoded as WKT

Type

int

NUMERIC

Encoded as a decimal string.

Type

int

__init__()

Initialize self. See help(type(self)) for accurate signature.

Attributes

BOOL

BYTES

DATE

DATETIME

FLOAT64

GEOGRAPHY

INT64

NUMERIC

STRING

TIME

TIMESTAMP