Skip to content

Commit 430e576

Browse files
committed
Add BQ console links, SQL snippets, and auto-generated descriptions to tenant docs
- Each custom object now includes: - Direct link to BigQuery Console - SQL preview snippet (SELECT * LIMIT 10) - Auto-generated description based on naming patterns and columns - Descriptions detect common patterns: summary, daily/weekly/monthly, cohort, retention, LTV, RFM, customer/order/product level, marketing, etc. - Descriptions identify data sources: Klaviyo, Shopify, Meta, Google, TikTok, Amazon, Podscribe, Northbeam, HubSpot, Twilio, Skio - Key columns extracted from DDL and shown in description
1 parent 7fddda2 commit 430e576

File tree

17 files changed

+5954
-1059
lines changed

17 files changed

+5954
-1059
lines changed

tenant/avenuez/custom-objects.mdx

Lines changed: 66 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -26,13 +26,71 @@ This page documents active custom BigQuery tables and views (those queried at le
2626

2727
### customized_views
2828

29-
| Object | Type | Usage (180d) | Last Used |
30-
|--------|------|--------------|-----------|
31-
| `rpt_executive_summary_daily_customized` | VIEW | 16,131 | 2025-11-10 |
32-
| `avez_exec_custom` | BASE TABLE | 13,420 | 2026-02-03 |
33-
| `rpt_ad_performance_daily_customized` | VIEW | 10,726 | 2026-02-03 |
34-
| `avez_orders_custom` | BASE TABLE | 4,336 | 2026-02-03 |
35-
| `avez_marketing_custom` | BASE TABLE | 2,321 | 2026-02-03 |
29+
<Accordion title="rpt_executive_summary_daily_customized">
30+
**Type:** VIEW | **Usage (180d):** 16,131 queries | **Last Used:** 2025-11-10
31+
32+
Aggregated summary.
33+
34+
<a href="https://console.cloud.google.com/bigquery?project=sm-avenuez&ws=!1m5!1m4!4m3!1ssm-avenuez!2scustomized_views!3srpt_executive_summary_daily_customized" target="_blank">Open in BigQuery Console →</a>
35+
36+
```sql
37+
-- Preview data
38+
SELECT * FROM `sm-avenuez.customized_views.rpt_executive_summary_daily_customized` LIMIT 10;
39+
```
40+
</Accordion>
41+
42+
<Accordion title="avez_exec_custom">
43+
**Type:** BASE TABLE | **Usage (180d):** 13,420 queries | **Last Used:** 2026-02-03
44+
45+
Custom data. Key columns: `date, sm_store_id, sm_channel, sm_sub_channel`.
46+
47+
<a href="https://console.cloud.google.com/bigquery?project=sm-avenuez&ws=!1m5!1m4!4m3!1ssm-avenuez!2scustomized_views!3savez_exec_custom" target="_blank">Open in BigQuery Console →</a>
48+
49+
```sql
50+
-- Preview data
51+
SELECT * FROM `sm-avenuez.customized_views.avez_exec_custom` LIMIT 10;
52+
```
53+
</Accordion>
54+
55+
<Accordion title="rpt_ad_performance_daily_customized">
56+
**Type:** VIEW | **Usage (180d):** 10,726 queries | **Last Used:** 2026-02-03
57+
58+
Daily aggregation.
59+
60+
<a href="https://console.cloud.google.com/bigquery?project=sm-avenuez&ws=!1m5!1m4!4m3!1ssm-avenuez!2scustomized_views!3srpt_ad_performance_daily_customized" target="_blank">Open in BigQuery Console →</a>
61+
62+
```sql
63+
-- Preview data
64+
SELECT * FROM `sm-avenuez.customized_views.rpt_ad_performance_daily_customized` LIMIT 10;
65+
```
66+
</Accordion>
67+
68+
<Accordion title="avez_orders_custom">
69+
**Type:** BASE TABLE | **Usage (180d):** 4,336 queries | **Last Used:** 2026-02-03
70+
71+
Order-level data. Key columns: `sm_store_id, sm_order_key, sm_customer_key, source_system, order_id`.
72+
73+
<a href="https://console.cloud.google.com/bigquery?project=sm-avenuez&ws=!1m5!1m4!4m3!1ssm-avenuez!2scustomized_views!3savez_orders_custom" target="_blank">Open in BigQuery Console →</a>
74+
75+
```sql
76+
-- Preview data
77+
SELECT * FROM `sm-avenuez.customized_views.avez_orders_custom` LIMIT 10;
78+
```
79+
</Accordion>
80+
81+
<Accordion title="avez_marketing_custom">
82+
**Type:** BASE TABLE | **Usage (180d):** 2,321 queries | **Last Used:** 2026-02-03
83+
84+
Marketing/advertising data. Key columns: `sm_store_id, source_system, sub_channel, date, ad_platform_reported_revenue`.
85+
86+
<a href="https://console.cloud.google.com/bigquery?project=sm-avenuez&ws=!1m5!1m4!4m3!1ssm-avenuez!2scustomized_views!3savez_marketing_custom" target="_blank">Open in BigQuery Console →</a>
87+
88+
```sql
89+
-- Preview data
90+
SELECT * FROM `sm-avenuez.customized_views.avez_marketing_custom` LIMIT 10;
91+
```
92+
</Accordion>
93+
3694

3795
---
3896

@@ -50,6 +108,7 @@ This page documents active custom BigQuery tables and views (those queried at le
50108

51109
- **Usage counts** reflect BigQuery job executions, including scheduled queries, dashboard refreshes, and ad-hoc queries.
52110
- Objects with low usage may be candidates for cleanup.
111+
- Click "Open in BigQuery Console" to view the table schema and run queries.
53112

54113
<Info>
55114
For questions about these custom objects or to request modifications, please contact your SourceMedium representative.

tenant/catalinacrunch/custom-objects.mdx

Lines changed: 92 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -26,15 +26,97 @@ This page documents active custom BigQuery tables and views (those queried at le
2626

2727
### customized_views
2828

29-
| Object | Type | Usage (180d) | Last Used |
30-
|--------|------|--------------|-----------|
31-
| `sales_by_flavor` | VIEW | 996 | 2026-01-29 |
32-
| `sku_categorization` | EXTERNAL | 996 | 2026-02-02 |
33-
| `cogs_opex_by_month` | EXTERNAL | 471 | 2026-02-02 |
34-
| `profit_and_loss` | VIEW | 471 | 2025-12-11 |
35-
| `dma_zip_codes` | BASE TABLE | 13 | 2026-02-02 |
36-
| `dma_zip_codes_sm` | VIEW | 13 | 2025-11-20 |
37-
| `spins_all_cat_markets_mulo_trended_csv` | BASE TABLE | 13 | 2026-02-02 |
29+
<Accordion title="sales_by_flavor">
30+
**Type:** VIEW | **Usage (180d):** 996 queries | **Last Used:** 2026-01-29
31+
32+
Custom data.
33+
34+
<a href="https://console.cloud.google.com/bigquery?project=sm-catalinacrunch&ws=!1m5!1m4!4m3!1ssm-catalinacrunch!2scustomized_views!3ssales_by_flavor" target="_blank">Open in BigQuery Console →</a>
35+
36+
```sql
37+
-- Preview data
38+
SELECT * FROM `sm-catalinacrunch.customized_views.sales_by_flavor` LIMIT 10;
39+
```
40+
</Accordion>
41+
42+
<Accordion title="sku_categorization">
43+
**Type:** EXTERNAL | **Usage (180d):** 996 queries | **Last Used:** 2026-02-02
44+
45+
Product/SKU-level data.
46+
47+
<a href="https://console.cloud.google.com/bigquery?project=sm-catalinacrunch&ws=!1m5!1m4!4m3!1ssm-catalinacrunch!2scustomized_views!3ssku_categorization" target="_blank">Open in BigQuery Console →</a>
48+
49+
```sql
50+
-- Preview data
51+
SELECT * FROM `sm-catalinacrunch.customized_views.sku_categorization` LIMIT 10;
52+
```
53+
</Accordion>
54+
55+
<Accordion title="cogs_opex_by_month">
56+
**Type:** EXTERNAL | **Usage (180d):** 471 queries | **Last Used:** 2026-02-02
57+
58+
Custom data. Key columns: `start_date, end_date, amz_dtc_spend_allocation`.
59+
60+
<a href="https://console.cloud.google.com/bigquery?project=sm-catalinacrunch&ws=!1m5!1m4!4m3!1ssm-catalinacrunch!2scustomized_views!3scogs_opex_by_month" target="_blank">Open in BigQuery Console →</a>
61+
62+
```sql
63+
-- Preview data
64+
SELECT * FROM `sm-catalinacrunch.customized_views.cogs_opex_by_month` LIMIT 10;
65+
```
66+
</Accordion>
67+
68+
<Accordion title="profit_and_loss">
69+
**Type:** VIEW | **Usage (180d):** 471 queries | **Last Used:** 2025-12-11
70+
71+
Custom data.
72+
73+
<a href="https://console.cloud.google.com/bigquery?project=sm-catalinacrunch&ws=!1m5!1m4!4m3!1ssm-catalinacrunch!2scustomized_views!3sprofit_and_loss" target="_blank">Open in BigQuery Console →</a>
74+
75+
```sql
76+
-- Preview data
77+
SELECT * FROM `sm-catalinacrunch.customized_views.profit_and_loss` LIMIT 10;
78+
```
79+
</Accordion>
80+
81+
<Accordion title="dma_zip_codes">
82+
**Type:** BASE TABLE | **Usage (180d):** 13 queries | **Last Used:** 2026-02-02
83+
84+
Custom data.
85+
86+
<a href="https://console.cloud.google.com/bigquery?project=sm-catalinacrunch&ws=!1m5!1m4!4m3!1ssm-catalinacrunch!2scustomized_views!3sdma_zip_codes" target="_blank">Open in BigQuery Console →</a>
87+
88+
```sql
89+
-- Preview data
90+
SELECT * FROM `sm-catalinacrunch.customized_views.dma_zip_codes` LIMIT 10;
91+
```
92+
</Accordion>
93+
94+
<Accordion title="dma_zip_codes_sm">
95+
**Type:** VIEW | **Usage (180d):** 13 queries | **Last Used:** 2025-11-20
96+
97+
Custom data.
98+
99+
<a href="https://console.cloud.google.com/bigquery?project=sm-catalinacrunch&ws=!1m5!1m4!4m3!1ssm-catalinacrunch!2scustomized_views!3sdma_zip_codes_sm" target="_blank">Open in BigQuery Console →</a>
100+
101+
```sql
102+
-- Preview data
103+
SELECT * FROM `sm-catalinacrunch.customized_views.dma_zip_codes_sm` LIMIT 10;
104+
```
105+
</Accordion>
106+
107+
<Accordion title="spins_all_cat_markets_mulo_trended_csv">
108+
**Type:** BASE TABLE | **Usage (180d):** 13 queries | **Last Used:** 2026-02-02
109+
110+
Custom data. Key columns: `sm_channel, time_period_end_date`.
111+
112+
<a href="https://console.cloud.google.com/bigquery?project=sm-catalinacrunch&ws=!1m5!1m4!4m3!1ssm-catalinacrunch!2scustomized_views!3sspins_all_cat_markets_mulo_trended_csv" target="_blank">Open in BigQuery Console →</a>
113+
114+
```sql
115+
-- Preview data
116+
SELECT * FROM `sm-catalinacrunch.customized_views.spins_all_cat_markets_mulo_trended_csv` LIMIT 10;
117+
```
118+
</Accordion>
119+
38120

39121
---
40122

@@ -52,6 +134,7 @@ This page documents active custom BigQuery tables and views (those queried at le
52134

53135
- **Usage counts** reflect BigQuery job executions, including scheduled queries, dashboard refreshes, and ad-hoc queries.
54136
- Objects with low usage may be candidates for cleanup.
137+
- Click "Open in BigQuery Console" to view the table schema and run queries.
55138

56139
<Info>
57140
For questions about these custom objects or to request modifications, please contact your SourceMedium representative.

0 commit comments

Comments
 (0)