Skip to content

Error on creating an edge on a specific bucket #1246

Closed

Description

@lvca

ArcadeDB Version:

23.9.1-SNAPSHOT

OS and JDK Version:

MacOS latest version

Expected behavior

The edge is saved in the passed bucket.

Actual behavior

The edge is saved in the default bucket, totally ignoring the CREATE EDGE sql command specification.

Steps to reproduce

Create the schema first (on a new database)

CREATE BUCKET vectorExample_t;
CREATE BUCKET edgeExample_t;
CREATE VERTEX TYPE vectorExample;
CREATE EDGE TYPE edgeExample;
ALTER TYPE vectorExample BUCKET +vectorExample_t;
ALTER TYPE vectorExample BUCKET +edgeExample_t;

Then try to execute this SQL Script:

INSERT INTO BUCKET:vectorExample_t SET hash = "6vltvet7fa";
INSERT INTO BUCKET:vectorExample_t SET hash = "jknn3y";
INSERT INTO BUCKET:vectorExample_t SET hash = "2qzio6a";
INSERT INTO BUCKET:vectorExample_t SET hash = "3pnevfa5i";
LET vectorExampleA = SELECT FROM BUCKET:vectorExample_t WHERE hash = "6vltvet7fa";
LET vectorExampleB = SELECT FROM BUCKET:vectorExample_t WHERE hash = "jknn3y";
LET vectorExampleC = SELECT FROM BUCKET:vectorExample_t WHERE hash = "3pnevfa5i";
CREATE EDGE edgeExample BUCKET edgeExample_t FROM $vectorExampleA[0] TO $vectorExampleB[0];
CREATE EDGE edgeExample BUCKET edgeExample_t FROM $vectorExampleB[0] TO $vectorExampleC[0];
CREATE EDGE edgeExample BUCKET edgeExample_t FROM $vectorExampleA[0] TO $vectorExampleC[0];

Activity

  1. self-assigned this
    on Sep 19, 2023
  2. added this to the 23.9.1 milestone on Sep 19, 2023
  3. lvca commented on Sep 19, 2023

    @lvca
    MemberAuthor

    There was a typo in the original script, this

    ALTER TYPE vectorExample BUCKET +edgeExample_t;

    Should rather be:

    ALTER TYPE edgeExample BUCKET +edgeExample_t;
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No type

Projects

No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions