This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| order_id | first_item | |
|---|---|---|
| 1 | {"id":"fa4b6cd3-4719-4b97-848b-7f2025f5e693","quantity":1,"sku":"M900353-SWB-RYL-2","list_price":60.0} | |
| 2 | {"id":"fa4b6cd3-4719-4b97-848b-7f2025f5e693","quantity":1,"sku":"M900353-SWB-RYL-2","list_price":60.0} |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| order_id | number_of_items | |
|---|---|---|
| 1 | 2 | |
| 2 | 1 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| with orders as ( | |
| select | |
| order_id, | |
| json_extract_path_text(json_text, 'items', true ) as items | |
| from flatten_test | |
| ), | |
| numbers as ( | |
| select * from numbers | |
| ), |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| order_id | item_id | quantity | sku | list_price | |
|---|---|---|---|---|---|
| 1 | fa4b6cd3-4719-4b97-848b-7f2025f5e693 | 1 | M900353-SWB-RYL-2 | 60 | |
| 1 | c39f9474-a278-4162-9cfa-aa068f4e1665 | 1 | F033199-SWB-FWL-1 | 20 | |
| 2 | fa4b6cd3-4719-4b97-848b-7f2025f5e693 | 1 | M900353-SWB-RYL-2 | 60 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| with staged_events as ( | |
| select * from {{ ref('snowplow_events_base') }} | |
| ), | |
| context as ( | |
| select | |
| event_id as root_id, | |
| c.value:data:id::string as id, | |
| collector_tstamp |
OlderNewer