You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
feat(match): add the three missing Classic comparators — contains, datetime tolerance, geo radius #795
So the spec's Exact is exact; Similar is jaro_winkler/levenshtein; and ± tolerance on date, number, currency and percent is date_within_days, numeric_within and numeric_within_pct. numeric_within_pct validates 0–100 and guards a zero denominator (lib.rs:530-548).
The gap
Three of the spec's operators have no token:
contains — substring containment. No equivalent; first_n:<n> is a prefix, which is not the same predicate.
datetime tolerance in hours.date_within_days is day-granular only, and the spec names hours for datetime fields.
geolocation radius. No geo comparator at all.
Also worth a decision rather than a build: the spec's 65% default minimum similarity. Here every level carries its threshold explicitly (jaro_winkler:0.90), which is deliberate — a defaulted threshold is invisible in the config and so invisible in the score explanation. Recommend keeping explicit thresholds and not porting the default; close this bullet with a note either way.
Done when
contains, a datetime-hours tolerance and a geo-radius token all resolve in resolve_level, each with a bad-parameter path like numeric_within's
all three appear in the UnknownLevel known-comparator list (that string is the user-facing vocabulary)
plan-vector / golden coverage per token, in the same place the existing comparators are tested
the 65%-default question answered in a comment on this issue
Split out of the parent epic on 2026-11-07 by reading the spec's pillar table against this repo, file by file. Every "what exists" line below was grepped, not inferred — the parent epic's own history includes a coverage figure that was wrong because a stale design doc was trusted. Spec unit numbers refer to the DataGroomr Feature Parity Spec pillar tables. Estimates are mine and independent of the epic's total.
Read while walking the claim queue — a scope finding for whoever takes this:
geo_within has no backing columns today. Neither entity schema carries any geo field (rg -i 'geo|lat|lng' entities/ → nothing but false positives), standardize produces none, and the canonical-attribute coverage rule means adding geo_lat/geo_lng to a canonical set forces every existing source mapping to cover them. A token that resolves to SQL over columns that do not exist would compile and then die at predict — exactly the #662 shape (accepted at config time, fatal at run time) this ticket itself cites approvingly.
Suggest splitting geo out: (1) schema/standardize support for optional geo columns, (2) the token. contains and datetime-hours are self-contained and landable without it.
Answering the 65%-default-similarity bullet (recommendation: keep explicit per-level thresholds; do not port the default):
Every level here carries its threshold in the token (jaro_winkler:0.90). A defaulted threshold is invisible in the config, and therefore invisible in the score explanation — against the explain-don't-gate rule the review surfaces are built on.
A global default couples unrelated fields to one number: retuning it silently re-scores every comparison that did not opt out. Explicit tokens make a threshold change a one-line, reviewable diff per field.
The spec's default is a convenience for a point-and-click model builder where typing a number per field is friction. In config-as-code the explicit threshold costs one suffix per level and stays auditable in git blame.
Closing that bullet as decided-not-to-build; the three comparator tokens are the deliverable.
Activity
athvin commentedon Nov 8, 2026
Read while walking the claim queue — a scope finding for whoever takes this:
geo_withinhas no backing columns today. Neither entity schema carries any geo field (rg -i 'geo|lat|lng' entities/→ nothing but false positives), standardize produces none, and the canonical-attribute coverage rule means addinggeo_lat/geo_lngto a canonical set forces every existing source mapping to cover them. A token that resolves to SQL over columns that do not exist would compile and then die at predict — exactly the #662 shape (accepted at config time, fatal at run time) this ticket itself cites approvingly.Suggest splitting geo out: (1) schema/standardize support for optional geo columns, (2) the token.
containsand datetime-hours are self-contained and landable without it.athvin commentedon Nov 8, 2026
Claimed — working in #851 (draft). Closing that PR releases the claim.
athvin commentedon Nov 8, 2026
Answering the 65%-default-similarity bullet (recommendation: keep explicit per-level thresholds; do not port the default):
jaro_winkler:0.90). A defaulted threshold is invisible in the config, and therefore invisible in the score explanation — against the explain-don't-gate rule the review surfaces are built on.Closing that bullet as decided-not-to-build; the three comparator tokens are the deliverable.
feat(match): add contains, datetime-hours and geo-radius comparators (#…
feat(match): add contains, datetime-hours and geo-radius comparators (#…