You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Returns all values in the input JSON as an array of string
301
+
302
+
```sql
303
+
SELECTbqutil.fn.json_extract_values(
304
+
'{"foo" : "cat", "bar": "dog", "hat": "rat"}'
305
+
) AS keys_array
306
+
307
+
cat
308
+
dog
309
+
rat
310
+
```
284
311
285
312
### [json_typeof(json string)](json_typeof.sqlx)
286
313
@@ -463,10 +490,10 @@ SELECT
463
490
Returns a binary representation of a number.
464
491
465
492
```sql
466
-
SELECT
467
-
x,
493
+
SELECT
494
+
x,
468
495
bqutil.fn.to_binary(x) AS binary
469
-
FROM
496
+
FROM
470
497
UNNEST([1, 123456, 9876543210, -1001]) AS x;
471
498
```
472
499
@@ -484,15 +511,15 @@ results:
484
511
Returns a hexadecimal representation of a number.
485
512
486
513
```sql
487
-
SELECT
488
-
x,
514
+
SELECT
515
+
x,
489
516
bqutil.fn.to_hex(x) AS hex
490
-
FROM
517
+
FROM
491
518
UNNEST([1, 123456, 9876543210, -1001]) AS x;
492
519
```
493
520
494
521
results:
495
-
| x | hex |
522
+
| x | hex |
496
523
|------------|------------------|
497
524
| 1 | 0000000000000001 |
498
525
| 123456 | 000000000001e240 |
@@ -705,11 +732,11 @@ results:
705
732
Returns the number of weeks from the beginning of the month to the specified date. The result is an INTEGER value between 1and5, representing the nth occurrence of the week in the month. The value 0 means the partial week.
0 commit comments