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
Copy file name to clipboardExpand all lines: using-transform-function-in-snowflake-to-extract-values-from-a-json-array.md
+2-2Lines changed: 2 additions & 2 deletions
Original file line number
Diff line number
Diff line change
@@ -34,7 +34,7 @@ order_id | coupons_applied
34
34
35
35
### Using the TRANSFORM function with a Lamba expression
36
36
37
-
We can using the TRANSFORM function to apply a Lambda Fuction to each element in the JSON array to extract the Coupon as following:
37
+
We can utilize the TRANSFORM function to apply a Lambda Fuction`promo OBJECT -> promo:"Coupon"` to each element in the JSON array to extract the Coupon as following:
38
38
39
39
```sql
40
40
SELECT
@@ -67,4 +67,4 @@ from orders
67
67
group by all
68
68
```
69
69
70
-
How this will be a lot slower compare to using the TRANSFORM function.
70
+
However this will be a lot slower compare to using the TRANSFORM function.
0 commit comments