Repository navigation
Conversation
A statement whose only clause is a filter (way(bn.n), node(bbox), ...) runs as that filter's own statement; with a second clause, the filter runs as a constraint of a query statement instead, which is separate code. (if:1) keeps every element and adds no ranges or keys, so t F; and t F(if:1); must return the same elements. The new standalone.py generates these pairs for every filter that has its own statement and each element type it parses with, on the current and the history database. On upstream/master it catches the wr(bn) constraint bug (every seed) and finds that node(pivot.a) alone returns the area's relation. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01736kJWpJaGbt8ML6jz9N35
This was referenced Nov 30, 2026
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Change
A new property for
bench/props/props.py: a filter alone must give the same result as the same filter with(if:1)added.A statement whose only clause is a filter (
way(bn.n),node(bbox),rel(id:...), ...) runs as that filter's own statement (Recurse_Statement,Bbox_Query_Statement, ...). With a second clause, it becomes a query statement and the filter runs as a constraint instead (Recurse_Constraint, ...), which is separate code.(if:1)keeps every element and adds no ranges or keys, sot F;andt F(if:1);must return the same elements. A difference is a bug in one of the two implementations.bench/props/standalone.pygenerates the pairs for every filter that has its own statement, with each element type it parses with (probed againstupstream/master): ids, a single id, bbox,poly:,arounda point and a set,area,pivot,uid,user, relation members with and without a role,bn(way,rel,wr; with a roleway,rel),bw,br,w, andnewer(relonly; it can't stand alone for other types, andchangedcan't at all). Filters valid for all seven types run with three of them per seed, chosen at random.--history-import-bin, the same checks run at three of the history dates.props.pyruns them through the existingrun_pairs, asi…(current) andhi…(history) checks. Own random streams, so other checks of a seed are unchanged.bench/README.mddescribes the check.Results
10 seeds with history (1,600 pairs, 95 s):
upstream/master60bb094 (as the candidate, no baseline): fails every seed onwr(bn.n)againstwr(bn.n)(if:1), current and past dates: the constraint bug fixed by recurse: handle wr(bn) in the query constraint #193. It also fails 3 seeds onnode(pivot.a). On its own, that statement returns the area's relation;Pivot_Statement::executeignores the element type. On a Nova Scotia extract,area(3609092218)->.a; node(pivot.a); out ids;returns relation 9092218, whilenode(pivot.a)(if:1)returns nothing (way,rel,nwrandnwagree in both forms).upstream/master: no new failures; the 40wr(bn)differences count as fixed, and the 3 pivot failures as shared with the baseline.Every other filter and type agrees.
Generated by Claude Code