Skip to content

Commit f90e3b2

Browse files
committed
document composite key in getting started vignette
1 parent c0689fb commit f90e3b2

1 file changed

Lines changed: 11 additions & 0 deletions

File tree

vignettes/getting_started.qmd

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -76,6 +76,17 @@ traitsview
7676
| `sitename` | Research site | Energy Farm, Urbana IL |
7777
| `author` | Citation author | Heaton 2008 |
7878
| `checked` | QA/QC status (0 = unchecked, 1 = verified) | 0, 1 |
79+
| `result_type` | Source table: "traits" or "yields" | traits, yields |
80+
| `id` | Row ID within the source table | 1, 42 |
81+
82+
::: {.callout-important}
83+
## Unique Row Identifier
84+
85+
The `traitsview` table is a union of BETYdb `traits` and `yields` tables.
86+
The row key is `(result_type, id)`, not `id` alone; same `id`
87+
value can appear under both `result_type = "traits"` and
88+
`result_type = "yields"`.
89+
:::
7990

8091
## Basic Exploration
8192

0 commit comments

Comments
 (0)