Skip to content

fix(cypher): preserve integer-list precision - #30

Merged
prrao87 merged 2 commits into
mainfrom
codex/issue-3-integer-lists
Oct 26, 2026
Merged

prrao87 merged 2 commits into
mainfrom
codex/issue-3-integer-lists

Conversation

@stugorf

@stugorf stugorf commented Oct 26, 2026

Copy link
Copy Markdown
Member

Problem and change

Fixes #3.

Integer-only list literals now retain Int64 values, including IDs above float32's exact range. Decimal or exponent notation still denotes a vector; vector operations convert integer lists at their boundary. A single-row logical source also lets a configured engine execute standalone RETURN expressions.

Validation

Head f71fe3c481b5c8599c24e904d163b8867eae29af; frozen parent 54e02307a48e467a98d9da2183f5adcb767e7c99. Focused checks and regression details record commands, results, documentation and compatibility. The release receipt pins wheel/archive identity and 42 installed tests.

Both complete workloads pass unchanged goldens in memory and lazy modes. Retained first-pass geometric mean speedups are below (greater than one is faster). Per-query results and paired investigations remain in the audit archive.

Workload/mode Main Actual parent
Q30 memory 1.007 1.007
Q30 lazy 0.923 0.923
IC memory 0.982 0.982
IC lazy 1.014 1.014

Measurements use the same Apple M4 Max (16 cores, 128 GiB), macOS 26.6.2 arm64 and Python 3.13.17, with Q30 revision 6260689 and IC revision c185123. Reproduction instructions pin settings, data checksums, locks and commands. The frozen main baseline is code-identical to current main 90114f3; the equivalence check also verifies clean prospective main-target merges.

Individual review gates pass under the recorded repeat/controlled-investigation rules. Initial failed measurements remain intact in the audit record.

User impact

Integer-only literals preserve Int64 IDs; decimal/exponent literals retain vector interpretation. Standalone RETURN is supported. Cypher/vector guides and regression examples are updated.

Review ledger · Current contribution guide

Audit archive: 47,675,190 bytes; SHA-256 b3486fb30a34639c830b5d49353b3838f96369f95df959ac35f85511f7f8b2de. The small current-main supplement preserves the documentation update. Original absolute paths in receipts map to included records through the archive index.

Submitted by David Hughes (@stugorf), with AI Collaboration.

stugorf and others added 2 commits October 25, 2026 09:58
Keep integer lists as Int64 values and convert numeric lists only at vector boundaries. Add singleton-row planning so standalone RETURN examples execute on configured engines.

Issue #3. Implemented with assistance from Codex; coordinated runtime and benchmark validation pending.
@cloudflare-workers-and-pages

cloudflare-workers-and-pages Bot commented Oct 26, 2026 •

Copy link
Copy Markdown

Deploying lance-csr with  Cloudflare Pages  Cloudflare Pages

Latest commit: 0ba274d
Status: ✅  Deploy successful!
Preview URL: https://3fdd0128.lance-csr.pages.dev
Branch Preview URL: https://codex-issue-3-integer-lists.lance-csr.pages.dev

View logs

@prrao87
prrao87 marked this pull request as ready for review October 26, 2026 16:14
@prrao87
prrao87 merged commit 30d9868 into main Oct 26, 2026
8 checks passed
@prrao87
prrao87 deleted the codex/issue-3-integer-lists branch October 26, 2026 16:31
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Integer list literals parse as 32-bit float vectors and lose precision

2 participants