Before starting Boot Camp, baby must meet all three:
- Weight: at least 4 kg (9 lbs)
- Food: eating at least ~710 ml/day
| test |
| # Let's add an row number to indicate the first message per app & microservice | |
| # This code is analagous to the SQL: row_number() over (partition by id, topic order by msg_ts asc) | |
| df['row_num'] = df.sort_values(['id', 'msg_ts'], ascending=True).groupby(['id', 'topic']).cumcount() + 1 |
| with | |
| warehouse_periods as ( | |
| select | |
| warehouse_name, | |
| timestamp as valid_from, | |
| lead(timestamp) over (partition by warehouse_name order by timestamp asc) as valid_to, | |
| event_name = 'RESUME_WAREHOUSE' as is_active | |
| from snowflake.account_usage.warehouse_events_history | |
| where | |
| -- double check these names, can't remember exact values |
| """ | |
| Read accompanying blog post: https://ianwhitestone.work/Zappa-Zip-Callbacks | |
| """ | |
| import os | |
| import re | |
| import shutil | |
| import tarfile | |
| import zipfile | |
| with sample_data as ( | |
| select * | |
| from snowflake_sample_data.tpch_sf1.customer | |
| ), | |
| nation_14_customers as ( | |
| select * | |
| from sample_data | |
| where c_nationkey = 14 | |
| ), |
SELECT *, Specify explicit column names (columnar store)