GeezerVisonThe World Wide Web, restored to 800 pixels of glory. |
| Home|About|Gaming cabinet|Archives|How it works|Starter sites |
GeezerVison is showing github.com — bindings: the #9238 tripwires become plain tests (PR #9246), the #9274 gap stays tracked by tae898 · Pull Request #187 · humemai/arcadedb-embedded-python
This repository was archived by the owner on Nov 21, 2026. It is now read-only.
ConversationCloses #186. Upstream merged ArcadeData/arcadedb PR ArcadeData#9246 (merge 111aa40), which fixes ArcadeData#9238: a SQL equality with a null value is no longer left to an index, so the planner reads the type and the equality matches no record, as it does on a type without an index. On engine jars of main from 111aa40 the eight strict The eight cases are the five shapes of Checked on the overlay of this branch's
One thing the fix does not do, found while checking: the engine keeps the plan by the text of the statement, and PR ArcadeData#9246 decides at planning time. A statement whose first run binds a value is planned through the index, and its next run with The full bindings suite on the overlay of this branch's source on the 111aa40 jars, as CI runs it ( 🤖 Generated with Claude Code
Sorry, something went wrong. Uh oh!
There was an error while loading. Please reload this page. All reactions…known-issues entry says Fixed in 26.10.1 (PR ArcadeData#9246), with the cached-plan gap Upstream PR ArcadeData#9246 (merge 111aa40) fixes ArcadeData#9238: an equality with a null value is no longer left to an index (BinaryCondition.isIndexAware returns false for it, also for a case-insensitive index), so the planner reads the type and the equality matches no record, as on a type without an index. The eight strict xfail tripwires in test_null_index_known_issues.py XPASS(strict) on engine jars of that commit and fail the suite. They become plain tests that assert the exact rows: the five shapes of `p = ?` / `p = :x` / `q = 7 AND p = :x` through an index (LSM named and positional, hash, composite (q, p), composite (p, q)) return [], the LSM index with NULL_STRATEGY ERROR matches nothing instead of raising "Indexed key ... cannot be NULL", and the two DELETE cases (LSM, composite) delete nothing and report a count of 0 (it was 2). The plan check changes with the fix: the engine now plans the null equality as a scan, so EXPLAIN with the null no longer shows FETCH FROM INDEX. The check is made on the same query with the value 1, which must still be planned through the index and return [1], so a test cannot pass on a type whose index the query cannot use. Checked: on the overlay of this branch's src on the CI jars of upstream main 111aa40 (run 37328406847 of build-engine-jars.yml) the eight tests pass; on the jars of 3543960 (before ArcadeData#9246) they fail with the answers the issue reports ([2, 3] == [] for the five reads, 2 == 0 for the two DELETE counts, the NULL_STRATEGY ERROR exception). Full suite on the 111aa40 overlay, python -m pytest tests/ -rs on cores 12-15: 770 passed, 3 skipped, 12 xfailed, 0 failed. bandit (src and tests low/low, examples medium/high) and pre-commit are clean. The fix is made at planning time, and the engine keeps the plan by the text of the statement, so it does not hold when an earlier run of the same statement bound a value. On 111aa40, through an index on one property (LSM, hash, unique; positional or named) the run with None after a run with 1 returns the records whose p is null or absent ([1], [2, 3], [1], [2, 3]), through NULL_STRATEGY ERROR it raises again, and a DELETE run with 99 and then None removes them. Composite indexes are right, and so is a statement whose first run binds None. With arcadedb.sqlStatementCache set to 0 the answers are right; it reproduces in Java on JDK 25 and 21. Five strict xfail tripwires record it (the two composite cases are plain tests that pass), and known-issues.md keeps the entry, now with "Fixed in 26.10.1" for a statement planned with the null and the workaround (p IS NULL, p <=> ?, or do not run the query) for the rest. queries.md says the same in one sentence. Co-Authored-By: Claude Sonnet 5.5 <[email protected]> Claude-Session: https://claude.ai/code/session_01Ubz3m6QXHESerCkehC1qgi Uh oh!
There was an error while loading. Please reload this page.
Sign up for free
to subscribe to this conversation on GitHub.
Already have an account?
Sign in.
ReviewersNo reviewsUh oh!
There was an error while loading. Please reload this page. AssigneesNo one assignedLabels
None yet
ProjectsMilestoneNo milestoneDevelopmentSuccessfully merging this pull request may close these issues. bindings: flip the #9238 tripwires (fixed upstream in PR #9246), track the #9274 gap Follow-up to #9032: SQLp = ? with the parameter bound to null returns the records whose p is null or missing through an index that stores null keys (NULL_STRATEGY INDEX, or any composite index), where a scan and the literal p = null return none
Uh oh!
There was an error while loading. Please reload this page. 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. |
| You are visitor 01402775 — GeezerVison does not store the pages you look up. Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required. |