Data Pipelines with Databricks
Build a plan, then give it the current batch
The next file still shows yesterday’s answer
The sensor rule was written down, but the interface kept displaying the original records.
BOTIE
The inputs we are comparing
Current sensor records
Two pump records
- pump
- P7
- temperature
- 12
- status
- ok
- pump
- P2
- temperature
- -3
- status
- placeholder
| pump | temperature | status |
|---|---|---|
| P7 | 12 | ok |
| P2 | -3 | placeholder |
The next file has different records
- pump
- P9
- temperature
- -1
- pump
- P3
- temperature
- 0
- pump
- P8
- temperature
- 14
| pump | temperature |
|---|---|
| P9 | -1 |
| P3 | 0 |
| P8 | 14 |
Field to check
Same in both cases
temperature
Accepted numerical minimum
Same in both cases
0
Requested output fields
Same in both cases
- 0pump
- 1temperature
Result for two pump records
- pump
- P7
- temperature
- 12
| pump | temperature |
|---|---|
| P7 | 12 |
The valid boundary moves to a different column
This check uses the pieces from “Make the plan produce the requested table”.
BOTIE
- Current sensor records
- pump
- A
- pressure
- 4
- pump
- B
- pressure
- 7
- pump
- C
- pressure
- null
pump pressure A 4 B 7 C null - Field to check
pressure
- Accepted numerical minimum
7
- Requested output fields
- 0pressure
- 1pump
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.
Which operation in your construction actually needs the source rows?
Before trusting a displayed table, ask which object names the source and which operation produced the rows you are seeing.
The floor interprets a filter and a column selection on local records. Spark’s optimizer and distributed execution belong to the optional workspace example.