BigQuery

Fungsi SQL BigQuery

Data warehouse serverless dari Google Cloud. 20 fungsi tersedia.

Menampilkan 20 dari 20 fungsi dalam kategori JSON

JSON_ARRAY

JSON

Creates a JSON array from the provided values.

Tipe hasil: JSON

JSON_ARRAY_LENGTH

JSON

Returns the number of elements in a JSON array.

Tipe hasil: INT64

JSON_EXTRACT

JSON

Mengekstrak nilai dari JSON menggunakan JSONPath dan mengembalikan sebagai JSON.

Tipe hasil: JSON

JSON_EXTRACT_ARRAY

JSON

Mengekstrak array dari JSON dan mengembalikan sebagai ARRAY<JSON>.

Tipe hasil: ARRAY<JSON>

JSON_EXTRACT_SCALAR

JSON

Mengekstrak nilai scalar dari JSON dan mengembalikan sebagai STRING.

Tipe hasil: STRING

JSON_EXTRACT_STRING_ARRAY

JSON

Mengekstrak array of scalars dari JSON sebagai ARRAY<STRING>.

Tipe hasil: ARRAY<STRING>

JSON_KEYS

JSON

Returns an array containing all keys from a JSON object.

Tipe hasil: ARRAY<STRING>

JSON_OBJECT

JSON

Creates a JSON object from the provided key-value pairs.

Tipe hasil: JSON

JSON_QUERY

JSON

Extracts a JSON value using JSONPath (SQL standard compliant).

Tipe hasil: JSON

JSON_QUERY_ARRAY

JSON

Extracts an array from a native JSON type as ARRAY<JSON>.

Tipe hasil: ARRAY<JSON>

JSON_TYPE

JSON

Returns the type of a JSON value (object, array, string, number, boolean, or null).

Tipe hasil: STRING

JSON_VALUE

JSON

Extracts a scalar value from JSON as a STRING (SQL standard compliant).

Tipe hasil: STRING

JSON_VALUE_ARRAY

JSON

Extracts an array of scalars from a native JSON value as ARRAY<STRING>.

Tipe hasil: ARRAY<STRING>

LAX_BOOL

JSON

Converts a JSON value to BOOL using flexible, lax type conversion.

Tipe hasil: BOOL

LAX_FLOAT64

JSON

Converts a JSON value to FLOAT64 using flexible, lax type conversion.

Tipe hasil: FLOAT64

LAX_INT64

JSON

Converts a JSON value to INT64 using flexible, lax type conversion.

Tipe hasil: INT64

LAX_STRING

JSON

Converts a JSON value to STRING using flexible, lax type conversion.

Tipe hasil: STRING

PARSE_JSON

JSON

Converts a JSON string into the native JSON type.

Tipe hasil: JSON

TO_JSON

JSON

Converts a BigQuery value to the native JSON type.

Tipe hasil: JSON

TO_JSON_STRING

JSON

Converts a BigQuery value to a JSON string representation.

Tipe hasil: STRING