Guide overview
Create a DP01 household product variant and prepare a labelled training example, then review quality and privacy recommendations. Select household-name whitespace cleanup and key-contact redaction, apply the changes, and validate the SQL and preview before saving and verifying your product.
What you will learn
- Create a separate DP01 variant and preserve its twelve-output household relationship contract.
- Prepare an explicit whitespace training example and review the quality recommendation to trim household names.
- Review the privacy recommendation to redact key_contact_name, then select and apply only the two demonstrated changes.
- Check the revised SQL, cleaned household names, redacted contacts and unchanged business aggregates, then save and verify the product before sharing.
Before you start
Browser practice: No account or setup required. Practise with genuine app captures, captions and simulated recommendation choices in this browser. Practice does not change live data or apply recommendations.
Follow along in Latttice: A signed-in Latttice session with access to Databricks Demo and its latttice_demo schema, plus permission to create a data product and apply recommendations. Use a unique DP01 variant name, prepare the labelled training example only in that variant, and verify every generated change.
Read the 16-step workflow
This written reference follows the same example as the interactive tour. Practice records progress in your browser; complete and verify live actions in your authorised Latttice workspace.
Start with the household outcome.
Create a Recommendations learning variant of the existing DP01 household relationship foundation. Keep the same fixed snapshot, household grain and twelve outputs.
- Open PinBoard → Create Structured Data Product.
- Name the variant DP01 | Household Relationships - Recommendations Demo.
- Use a unique name to preserve the original DP01 reference.
Check: Synthetic household relationships · fixed 9 October 2026 snapshot.
Generate from a precise request.
State the source, snapshot, join keys, household grain and calculations. Review the generated DP01 contract before applying quality and privacy recommendations.
- Paste the prepared request into Intent / Use Case.
- Confirm Databricks Demo, latttice_demo and 2026-10-09.
- Select Generate and review the recommendation.
Check: Membership and banker ownership describe relationships; they grant no access.
Check the tables and their meaning.
DP01 combines household membership with customer party details. Review the current semantic coverage, gaps and direct source meaning before accepting the recommendations.
- Confirm household membership and customer party.
- Check relevant semantic definitions, table coverage and gaps.
- Select Accept Latttice AI Recommendations after review.
Check: Reported coverage does not verify business meaning. Review mappings and gaps.
Keep both sides on the same date.
Each membership must match its party in the same snapshot. The output rolls up to one household at one reporting date.
- Confirm the tables and columns; select Next: Configure Access.
- In Define Access & Transformations, open SQL.
- Check both join keys, 2026-10-09 and the household snapshot grain.
Check: Join: party_id + as_of_date. Grain: household_id + as_of_date.
Make the business calculations clear.
DP01 contains two keys and ten computed fields. Entities include BUSINESS and TRUST parties; a KYC review due on the snapshot is not overdue.
- Open Tables & Columns.
- Review the two keys and ten computed fields.
- Count KYC only when its due date is before 2026-10-09.
Check: 12 fields. A KYC review due on the snapshot is not overdue.
Make the quality correction visible.
The original DP01 review offered no quality corrections. In this separate training variant only, add one leading and trailing space to household_name so there is a visible quality example.
- In the separate training variant, open Transform.
- Use the prepared request to pad household_name only.
- Select Transform, then inspect the changed SQL.
Check: Deliberate training fixture: preserve NULL, the other eleven outputs and the DP01 contract.
Review recommendations for the product.
In Define Access & Transformations, open Transform, then select Recommendations. This opens the Data Quality & Privacy Recommendations dialog for the generated product.
- Open Define Access & Transformations → Transform.
- Select Recommendations.
- Review Data Quality & Privacy Recommendations.
Check: The source-plan recommendations in step 3 are a separate part of product creation.
Correct the deliberate whitespace.
Data Quality offers Trim surrounding whitespace from household names. Read its reason and Medium Impact rating, then check that trimming corrects only the training padding.
- Find Data Quality in the recommendations dialog.
- Read Trim surrounding whitespace from household names.
- Review the proposed trim and Medium Impact rating.
Check: Quality should remove the deliberate name padding without changing household membership or calculations.
Protect the key contact name.
Data Privacy offers seven recommendations in this example. Review Protect contact name, rated High Impact, and confirm that it redacts the key_contact_name output to the fixed value ***.
- Find Data Privacy in the same dialog.
- Read Protect contact name and its High Impact rating.
- Check the fixed *** replacement and NULL handling.
Check: Redact key_contact_name only; keep household and party identifiers available for DP01 relationships.
Apply a deliberate pair of changes.
Select only the whitespace quality correction and key-contact privacy redaction. Check the selected counter and the Apply Selected button before applying.
- Select Trim surrounding whitespace from household names.
- Select Protect contact name; leave the others unselected.
- Confirm 2 of 8 selected and Apply Selected (2).
Check: Two reviewed cards: trim household_name and redact key_contact_name. Confirm each target and action.
Wait for the application to finish.
Select Apply Selected (2) after reviewing the cards. The reference application closed the dialog and added two recommendation history entries alongside the existing training-fixture entry. Review the changed SQL next.
- Select Apply Selected (2).
- Wait while the button shows Applying… and is disabled.
- Review the generated SQL before continuing.
Check: Observed: two applied recommendation entries plus one earlier fixture entry; three history items total.
Verify the actual implementation.
The applied query trims household_name in a quality layer and redacts key_contact_name in an outer privacy projection. The original DP01 terms remain inside the query with the deliberate fixture.
- Open SQL after application completes.
- Check trimmed household_name and redacted key_contact_name.
- Retain twelve outputs, both join keys, date, grain and counts.
Check: Observed: trim(household_name), fixed *** redaction with explicit NULL handling, twelve output names and unchanged DP01 terms.
Check the returned household values.
A freshly loaded reference preview returned 100 sample rows and all twelve output headers. Every sampled household name was trimmed and every sampled key contact displayed ***. Full-set equality remains a separate check.
- Open Preview Data → Load Preview.
- Check household names without padding and key contacts as ***.
- Compare household keys, twelve fields and DP01 counts.
Check: Observed: 100 rows, twelve headers, trimmed names and *** contacts. NULL handling was checked in SQL, not a runtime NULL fixture.
Save the reviewed DP01 product.
After the quality, privacy and preview checks pass, select Next: Preview & Finalize. Review the separate Recommendations variant and select Create Data Product.
- After successful checks, select Next: Preview & Finalize.
- Review the separate Recommendations variant.
- Select Create Data Product and confirm a successful save.
Check: Use a unique variant name and preserve the original DP01 reference.
Check that both changes persist.
The reference variant was saved and reopened. Its three history items and exact applied SQL persisted, and a fresh reopened preview showed trimmed household names and redacted contacts. Repeat these checks on your saved variant.
- Reopen the variant: PinBoard → Edit → Continue Manually.
- Continue to the SQL and preview controls.
- Check persisted trim, key-contact redaction and DP01 counts.
Check: Observed saved SQL and 100-row preview passed. NULL behavior was reviewed in SQL; full 800-household equality remains unverified.
Clear quality. Deliberate privacy.
You have practised creating DP01, applying a generated quality correction and a privacy redaction, then checking the saved product. The reference retained both changes in saved SQL and a fresh preview. Verify your own saved output and the complete reporting contract in Latttice.
- Keep the checklist for your own product review.
- Verify both applied recommendations in the saved product.
- Return to the library for the next lesson.
Check: The saved reference passed SQL and sample-output checks. Practice records learning progress only.
