Data Pipelines with Databricks
Give the hot group more than one route
BOTIE
Examples, experiments and workspace controls
Connect a tool's inputs to see what it produces. You can try a branch before connecting it to Result.
Try your own inputs
Use a copy of the example to try your own data. Keep the problem's assumptions in mind, and predict the effect of a change before checking the output. You can also add another branch to compare two ways of doing the calculation.
Context for this challenge
Return the records with their temporary routing keys, preserving every original record.
The filter worked, but almost all accepted records reached one worker.
Inspect the component calculation
Split one hot key into partial groups( Records: Accepted records Original key field: Original entity field Hot key: Pump to split into partial groups Salt groups: Partial groups for that pump )
Examples and results
- Accepted records
- pump
- A
- pump
- A
- pump
- A
- pump
- A
- pump
- B
pump A A A A B - Original entity field
pump
- Pump to split into partial groups
A
- Partial groups for that pump
1
- Required result
- pump
- A
- routingKey
- A#0
- pump
- A
- routingKey
- A#0
- pump
- A
- routingKey
- A#0
- pump
- A
- routingKey
- A#0
- pump
- B
- routingKey
- B#0
pump routingKey A A#0 A A#0 A A#0 A A#0 B B#0
- Accepted records
- pump
- B
- pump
- B
- pump
- B
- pump
- B
pump B B B B - Original entity field
pump
- Pump to split into partial groups
B
- Partial groups for that pump
2
- Required result
- pump
- B
- routingKey
- B#0
- pump
- B
- routingKey
- B#1
- pump
- B
- routingKey
- B#0
- pump
- B
- routingKey
- B#1
pump routingKey B B#0 B B#1 B B#0 B B#1
Try a fresh construction
This clears this draft, including its undo history. Earlier successful attempts stay recorded. Build again without opening hints to record an independent attempt.
Stuck? Inspect a worked construction
The tools below form one possible solution. You can assemble it, follow its signals, and undo that change to return to your own construction.
Assumptions and test precision
The workers are local lists of equal-cost records, routed by our stated teaching hash. Real Spark plans can aggregate before moving data, and a join needs its own correct treatment of both inputs. Numerical tests allow a difference of 0.001. Lists and structures must also have the right shape.
Your last tested pieces can start the full construction. An existing draft there keeps its own pieces.
A different pump sends an uneven burst
This check uses the pieces from “Expose and repair the hot route”.
BOTIE
- Accepted records
- pump
- B
- pump
- B
- pump
- B
- pump
- B
- pump
- B
- pump
- A
pump B B B B B A - Original entity field
pump
- Pump to split into partial groups
B
- Partial groups for that pump
3
- Teaching worker count
3
Use a number, text, or an array matching the requested result. A named result uses field names, such as {"count": 2}. For a matrix, put each row in brackets. Saving your prediction runs your current construction on these inputs and checks the earlier examples too.
Build a construction in the workspace above first. This case will test those pieces.
What evidence would justify salting a real Spark job rather than trusting this count-only picture?
Keep logical group identity separate from temporary execution keys.
The workers are local lists of equal-cost records, routed by our stated teaching hash. Real Spark plans can aggregate before moving data, and a join needs its own correct treatment of both inputs.