Skip to content

Commit ea300b8

Browse files
committed
Remove WHERE clause in example mermaid diagram
1 parent 3448d12 commit ea300b8

1 file changed

Lines changed: 8 additions & 3 deletions

File tree

docs/reading.md

Lines changed: 8 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -43,10 +43,15 @@ Important: `where=` must be only a WHERE predicate (no `SELECT`/`FROM`/`;`). The
4343

4444
This pattern keeps reads fast and memory-efficient even for large datasets.
4545

46-
The following diagram shows the flow for a query like:
46+
The following diagram shows the flow for an example query:
4747

4848
```python
49-
for record_dict in td.read_dicts_iter(table="records", source="dspace", run_date="2025-09-01", run_id="abc123"):
49+
for record_dict in td.read_dicts_iter(
50+
table="records",
51+
source="dspace",
52+
run_date="2025-09-01",
53+
run_id="abc123"
54+
):
5055
# process record...
5156
```
5257

@@ -68,7 +73,7 @@ sequenceDiagram
6873
D-->>TD: lightweight result set (file + offsets)
6974
7075
TD->>D: Build and run data query using metadata
71-
Note right of D: (Data query)<br><br>SELECT <COLUMNS><br>FROM read_parquet(P.files) d<br>JOIN meta m<br>USING (timdex_record_id, run_id, run_record_offset)<br>WHERE d.source = 'dspace' AND d.run_id = 'abc123'
76+
Note right of D: (Data query)<br><br>SELECT <COLUMNS><br>FROM read_parquet(P.files) d<br>JOIN meta m<br>USING (timdex_record_id, run_id, run_record_offset)
7277
7378
D-->>TD: batches of rows
7479
TD-->>U: iterator of dicts (one dict per row)

0 commit comments

Comments
 (0)