GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Sign in
  • ActionsCI/CD and automation
  • CodespacesCloud development environments
  • All Features
  • Documentation
  • Training
  • Certifications
  • Build with Copilot
  • Customize Copilot
  • Integrations
  • Trending repos
  • GitHub Sponsors
  • Developer articles
  • Enterprises

This view

  • Original page
  • New address

GeezerVison is showing github.com — bindings: new_edges refuses sequences of different lengths, and the JSON bulk paths refuse a non-str property name by tae898 · Pull Request #321 · humemai/arcadedb-embedded-python

This repository was archived by the owner on Nov 21, 2026. It is now read-only.

Conversation

@tae898

@tae898 tae898 commented Oct 13, 2026

Copy link
Copy Markdown

Fixes #318.

GraphBatch.new_edges reads its three sequences once and raises ArcadeDBError before it buffers anything when their lengths differ (the exception type the no-properties case already had; the message names the three lengths). A property name that is not a str now sends create_vertices and new_edges down the per-value path, which refuses it, instead of through json.dumps, which stored {1: "a"} as a property called 1.

Checked before the push, on cores 8-9, against a wheel built from this branch's sources:

  • The new tests (TestNewEdgesLengths, 13 cases) fail on main (10 of 13) and pass here; test_graph_batch.py, test_graph.py, test_bulk_json_paths.py, test_bulk_insert.py, and test_graph_api.py pass (153 tests).
  • The repro of GraphBatch.new_edges drops edges without a word when its sequences differ in length, and create_vertices stores a non-str property name as text #318 prints ArcadeDBError and zero edges added for every mismatched call, and the three non-str property names raise; main buffered the shorter number of edges and stored the properties 1, true, and null.
  • pre-commit on the changed files and mkdocs build --strict pass.

Swept: the two JSON bulk paths of GraphBatch (create_vertices, new_edges) and the per-edge fallback inside new_edges; insert_many and insert_columns already check their arguments. docs/api/graph_batch.md says what is refused.

🤖 Generated with Claude Code

https://claude.ai/code/session_01222vQiEr2wJRo4UhFYo9Fv

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

All reactions
@tae898 @claude
bindings: new_edges refuses sequences of different lengths, and the J…
628d684
…SON bulk paths refuse a property name that is not a str (Fixes #318)

new_edges paired its sequences with zip(), which stops at the shortest, so a properties list one short dropped an edge and none of the paths said so. It reads its sequences once and raises ArcadeDBError before it buffers anything. create_vertices and new_edges with properties sent a non-str property name through json.dumps, which stored {1: "a"} as a property called 1; such a name now takes the per-value path, which refuses it.

Co-Authored-By: Claude Sonnet 5.5 <[email protected]>
Claude-Session: https://claude.ai/code/session_01222vQiEr2wJRo4UhFYo9Fv
@tae898
tae898 merged commit 9cd050b into main Oct 13, 2026
50 checks passed

Uh oh!

There was an error while loading. Please reload this page.

@tae898
tae898 deleted the fix/new-edges-length-check branch October 13, 2026 20:06
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Reviewers

No reviews

Uh oh!

There was an error while loading. Please reload this page.

Assignees

No one assigned

Labels

None yet

Projects

None yet

Milestone

No milestone

Development

Successfully merging this pull request may close these issues.

GraphBatch.new_edges drops edges without a word when its sequences differ in length, and create_vertices stores a non-str property name as text

Uh oh!

There was an error while loading. Please reload this page.

1 participant

@tae898
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.