feat: AI/BI dashboard, country in gold layer, randomized seed data - #33
Merged
Conversation
Added `country` to `curated.order_enriched` and `report.order_agg` (and SDP equivalents) so the gold layer carries the full customer dimension needed for country-based reporting; unit and integration tests updated accordingly. Added an AI/BI (Lakeview) dashboard with three line charts (total value by date × country, by date × product, by date × category), three KPI counters (total value, number of orders, number of customers), and a global filter page (date range, country, customer, product, category). Dashboard JSON and its DAB resource are generated by sdk_generate_template_job.py at deploy time with the target catalog embedded — both files are gitignored. Randomized seed data: qty (1–5) and total_item ($10–$200) now use F.rand with fixed seeds instead of hardcoded constants, so aggregated values differ across countries/products/categories and chart lines no longer overlap. Note: first deploy after this change requires DROP TABLE on curated.order_enriched and report.order_agg (schema change — country column added) before re-running job1. Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
…s in seed data Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
andre-salvati
added a commit
that referenced
this pull request
Jun 5, 2026
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
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
Migration note
First deploy requires dropping the stale-schema gold tables before re-running `job1`:
```sql
DROP TABLE IF EXISTS ``.`curated`.`order_enriched`;
DROP TABLE IF EXISTS ``.`report`.`order_agg`;
```
Test plan
🤖 Generated with Claude Code