Commit 274bcc6
Prohibit DuckDB spatial ops; require H3 hash joins for all geographic filtering (#49)
* h3-guide: add resolution direction and pre-computed parent column join pattern
Fixes #44
Two gaps caused a model to spiral for 26 turns on a cross-resolution join:
1. No explicit statement that higher H3 resolution numbers are finer/children
2. No guidance to use pre-computed parent columns (e.g. h6 on an h8 dataset)
before falling back to h3_cell_to_parent()
* Prohibit all DuckDB spatial ops; require H3 hash joins (Fixes #47)
ST_Within/ST_Intersects/ST_Distance and all spatial predicates are
always too slow for global datasets — that's the entire reason the
workflow pre-computes H3 indices. Add a prominent section 0 making
this explicit and directing agents to H3-indexed boundary datasets.
* Strengthen spatial ops prohibition in h3-guide; remove duplicate in query-optimization (Fixes #47)
h3-guide already covered this — strengthen the existing line to be
explicit and non-negotiable, and add the "say so if no H3 boundary"
rule. Remove the redundant verbose section added to query-optimization.md.
* Refine spatial ops guidance: hex-first, missing hex = pipeline gap, single-geom ops ok
---------
Co-authored-by: Carl Boettiger <cboettig@berkeley.edu>1 parent 1e8fc94 commit 274bcc6
1 file changed
Lines changed: 6 additions & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
2 | 2 | | |
3 | 3 | | |
4 | 4 | | |
5 | | - | |
| 5 | + | |
| 6 | + | |
| 7 | + | |
| 8 | + | |
| 9 | + | |
| 10 | + | |
6 | 11 | | |
7 | 12 | | |
8 | 13 | | |
| |||
0 commit comments