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
query: datatype-aware =/!= for stored language-tagged literals (§17.4.1.7) #1468
Deferred from PR #1462 review (O1); documented D5b limitation.lit_to_comparable (fluree-db-query/src/eval.rs:463) maps a stored LangTag(_) literal to a bare ComparableValue::String, dropping the tag. So FILTER(?a = ?b) with stored "x"@en, "x"@fr collapses both to String("x") → true (should be false per §17.4.1.7), while the constant form FILTER("x"@en = "x"@fr) correctly returns false via the (Lang,Lang) arm in compare.rs. The lang_parts/EqKind::Lang machinery is dead for stored data, and PR-X2 newly makes constants and stored data disagree.
Why deferred: X2's documented bet (eval.rs:458-462) — carrying the tag through would break every string builtin (CONTAINS/REPLACE/…) that assumes plain String.
Fix direction: route stored lang-tagged literals to a LangTag-carrying TypedLiteral at the eval boundary while keeping the string builtins tag-transparent (or teach them to strip the tag).
Activity
fix(query): carry language tag through lit_to_comparable (#1468)
fix(query): carry language tag through lit_to_comparable (#1468)
fix(query): re-tag encoded language-tagged literals so indexed =/!= a…