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 — RemoteVertex.newEdge does not support Map properties, while GraphEntity.newEdge does · Issue #1569 · ArcadeData/arcadedb

RemoteVertex.newEdge does not support Map properties, while GraphEntity.newEdge does #1569

New issue
Copy link
New issue
Copy link
Closed
Closed
RemoteVertex.newEdge does not support Map properties, while GraphEntity.newEdge does#1569
Copy link
Assignees
lvca
Milestone
24.5.1

Description

@rmsloan
rmsloan
opened on Apr 26, 2024
Issue body actions

ArcadeDB Version:

ArcadeDB Server v24.4.1

OS and JDK Version:

Running on Linux 4.18.0-477.21.1.el8_8.x86_64 - OpenJDK 64-Bit Server VM 11.0.22 (Temurin-11.0.22+7)

Expected behavior

`Expected all implementations of Vertex.newEdge(..., final Object... properties) to support both

  • Map
  • or
  • array or sequence of arguments
    for properties. `

Actual behavior

Success case (embedded):

GraphEngine.newEdge(...) employs its setProperties method which handles properties provided to it as a Map OR array of arguments (Properties must be an even number as pairs of name, value).

Failure case (remote):

RemoteVertex.newEdge(...) expects only an array of arguments.
Properties provided as a Map results in an Exception at line 143.
class java.util.HashMap cannot be cast to class java.lang.String (java.util.HashMap and java.lang.String)

Steps to reproduce

db is a RemoteDatabase

  db.transaction( () -> {
    MutableVertex elon = db.newVertex("User", "name", "Elon", "lastName", "Musk").save();
    MutableVertex steve = db.newVertex("User", "name", "Steve", "lastName", "Jobs").save();
    Map<String, Object> properties = new HashMap();
    properties.put("since", 2010);
    properties.put("Map", "would like to be supported in RemoteVertex, just like it's buddy GraphEngine ;-)");
    elon.newEdge("IsFriendOf", steve, true, properties);
  });

Activity

  1. lvca
    self-assigned this
    on Apr 27, 2024
  2. lvca
    added
    bug
    on Apr 27, 2024
  3. lvca
    added this to the 24.5.1 milestone on Apr 27, 2024
  4. lvca commented on Apr 27, 2024

    @lvca
    lvca
    on Apr 27, 2024
    Member
    More actions

    Confirmed, the support for passing a map is totally missing in the remote vertex. Fixing it.

  5. lvca
    added a commit that references this issue on Apr 27, 2024

    fix: supported passing of map to remote edge creation

    2699aa0
  6. lvca commented on Apr 27, 2024

    @lvca
    lvca
    on Apr 27, 2024
    Member
    More actions

    Implemented.

    Reacted by rmsloan
  7. lvca
    closed this as completedon Apr 27, 2024
  8. lvca
    added
    fixed
    on Apr 27, 2024
  9. tae898
    added a commit that references this issue on Jun 28, 2026

    fix: supported passing of map to remote edge creation

    ed6e8db
  10. mergify
    added a commit that references this issue on Jul 19, 2026

    chore(deps): bump actions/setup-node from 6.4.0 to 7.0.0 [skip ci]

    9234027
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

  • @lvca
    lvca

Labels

No labels
No labels

Type

No type

Projects

No projects

    Milestone

    • 24.5.1

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions

    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.