Introduction to Databricks
Read the files belonging to this table version
The pending reading appeared in version 0
The first file gave the expected readings. A second file has appeared before it was included in the published table.
BOTIE
The inputs we are comparing
Retained committed file lists
Same in both cases
- version
- 0
- files
- ["readings/batch-0.parquet"]
| version | files |
|---|---|
| 0 | ["readings/batch-0.parquet"] |
Requested version number
Same in both cases
0
Stored files with decoded records
Only the first batch exists
[
{
"key": "readings/batch-0.parquet",
"rows": [
{
"pump": "P7",
"temperature_c": 12
},
{
"pump": "P2",
"temperature_c": 18
}
]
}
]A pending file now exists too
[
{
"key": "readings/batch-0.parquet",
"rows": [
{
"pump": "P7",
"temperature_c": 12
},
{
"pump": "P2",
"temperature_c": 18
}
]
},
{
"key": "readings/batch-1.parquet",
"rows": [
{
"pump": "P9",
"temperature_c": 27
}
]
}
]Result for only the first batch exists
- pump
- P7
- temperature_c
- 12
- pump
- P2
- temperature_c
- 18
| pump | temperature_c |
|---|---|
| P7 | 12 |
| P2 | 18 |
A new committed file order and another pending object
This check uses the pieces from “Put publication state before file reading”.
BOTIE
- Retained committed file lists
- version
- 5
- files
- ["evening.parquet","morning.parquet"]
version files 5 ["evening.parquet","morning.parquet"] - Requested version number
5
- Stored files with decoded records
[ { "key": "morning.parquet", "rows": [ { "pump": "P1", "temperature_c": 11 } ] }, { "key": "pending.parquet", "rows": [ { "pump": "P9", "temperature_c": 99 } ] }, { "key": "evening.parquet", "rows": [ { "pump": "P2", "temperature_c": 17 } ] } ]
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.
If version 0 remains named but its only data file is removed, what should the read do?
Keep the version identity, its active file list and the data needed to read it.
This local model receives decoded Python-like records and already reconstructed manifests. It does not access storage, replay a Delta transaction log or implement the real table format’s transaction and failure guarantees.