Repository navigation
Filter the missing-token preflight before its OPTIONAL - #39
Merged
Merged
Conversation
preflight_missing_token_conformance and its count query look for plain "." literals that should have been typed vcfc:Null. Since f43ec15 (v3.3.0) they also skip a header's own Number=. value, through OPTIONAL { ?s vcfc:attributeKey ?attributeKey }. That OPTIONAL sat in the same group as the dot filters, and a group's FILTERs apply after its OPTIONAL, so the left join ran over every triple in the graph. QLever absorbs that, but the COTTAS engine looks up each triple's subject. In the v3.3.3 rerun of the core benchmark's validation runs, the check took 1,766 s or hit the 1,800 s query timeout on COTTAS on 10,000-record expanded graphs (959k triples), against about 37 s in v3.1.0. Six runs were reported as MISMATCH although every query answer agreed. The dot filters now sit in an inner group, so the OPTIONAL only sees the few rows they keep. The results are unchanged. On the same COTTAS artifact and endpoint, the count and sample queries take about 31 s (count 0), where the old count query had not finished after 600 s. A new test compiles both queries with rdflib and checks that the OPTIONAL's left side is the filtered pattern, not the bare triple scan. It fails on the old form. Co-Authored-By: Claude Opus 5.5 <[email protected]>
|
Codecov Report✅ All modified and coverable lines are covered by tests. 📢 Thoughts on this report? Let us know! |
Merged
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.
What
preflight_missing_token_conformance.rqand its_countpartner look for plain"."literals that should have been typedvcfc:Null. Since f43ec15 (v3.3.0) they also skip a header's ownNumber=.value:OPTIONAL { ?s vcfc:attributeKey ?attributeKey }That OPTIONAL sat in the same group as the dot filters. A group's FILTERs apply after its OPTIONAL, so the left join ran over every triple in the graph before anything was filtered.
This PR moves the dot filters into an inner group, so the OPTIONAL only joins the few rows they keep. The results are the same as before.
Why
QLever absorbs the full left join. The COTTAS engine looks up each triple's subject instead. In the v3.3.3 rerun of the core benchmark's 78 validation runs (vcf-rdfizer-testing
benchmark-results/vcf-bench-3/v333-ae), this check took 1,766 s or hit the 1,800 s query timeout on COTTAS. That happened on 10,000-record expanded graphs (959k triples), where v3.1.0 took about 37 s.Six runs in
06_equivalencewere reported asMISMATCHas a result. In all six, every query answer agreed and COTTAS answered Q1–Q13.Evidence
Number=.is still excluded, and a bare"."elsewhere is still reported06_equivalence/encoding__plain__expanded, the September command with image 3.3.3 and the two fixed queries mounted over the image's copiesValidation only. Conversion does not change.
🤖 Generated with Claude Code