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 — Default Properties Top Most Document not Populating in Vertex if a Document <--Extends-- Document <--Extends-- Vertex · Issue #1423 · ArcadeData/arcadedb

Default Properties Top Most Document not Populating in Vertex if a Document <--Extends-- Document <--Extends-- Vertex #1423

New issue
Copy link
New issue
Copy link
Closed
Closed
Default Properties Top Most Document not Populating in Vertex if a Document <--Extends-- Document <--Extends-- Vertex#1423
Copy link
Assignees
lvca
Milestone
24.1.1

Description

@ironluca
ironluca
opened on Jan 14, 2024
Issue body actions

ArcadeDB Version:

ArcadeDB Server v23.12.1 (build df4e3d56e9063a245b46bca14001e393dc7f8001/1704296942361/main)

OS and JDK Version:

Running on Linux 6.5.0-14-generic - OpenJDK 64-Bit Server VM 17 (Temurin-17+35)

If a Document (say A) is created with a set of properties that have default values and is extended by another Document (say B) which in turn is extended by a Vertex (say V) and a record of the vertex is created, then the properties declared in A are not populating in the vertex record.

However, if the Document A is directly extended by Vertex V and a record of vertex is created, then the default values of the properties are being populated correctly

CREATE DOCUMENT TYPE IdentifiableEntity IF NOT EXISTS;

CREATE PROPERTY IdentifiableEntity.uniqueId IF NOT EXISTS STRING (DEFAULT "uuid()", READONLY TRUE, NOTNULL TRUE);
CREATE PROPERTY IdentifiableEntity.namespace IF NOT EXISTS STRING (MIN 3, MAX 256);
CREATE PROPERTY IdentifiableEntity.creationTime IF NOT EXISTS LONG (DEFAULT "sysdate().asLong()", READONLY TRUE, NOTNULL TRUE);
CREATE PROPERTY IdentifiableEntity.updateTime IF NOT EXISTS LONG (NOTNULL TRUE, DEFAULT "sysdate().asLong()");
CREATE PROPERTY IdentifiableEntity.createdByEmail IF NOT EXISTS STRING;
CREATE PROPERTY IdentifiableEntity.updatedByEmail IF NOT EXISTS STRING;

CREATE INDEX IF NOT EXISTS ON IdentifiableEntity (uniqueId) UNIQUE;
-------------------------------------------------------------------------------------------------------------------------------------
CREATE DOCUMENT TYPE XDoc IF NOT EXISTS EXTENDS IdentifiableEntity;

CREATE VERTEX TYPE XVtx IF NOT EXISTS EXTENDS XDoc;

CREATE VERTEX XVtx; -- The default values will not populate

-- DELETE FROM #33:0;
-- DROP TYPE XVtx;
-----------------------------------------------------------------------------------------------------------------------------------
CREATE VERTEX TYPE XVtx IF NOT EXISTS EXTENDS IdentifiableEntity;

CREATE VERTEX XVtx; -- Default values will populate


Activity

  1. ironluca commented on Jan 14, 2024

    @ironluca
    ironluca
    on Jan 14, 2024
    Author
    More actions

    This is also happening with Vertices
    image

  2. lvca
    self-assigned this
    on Jan 14, 2024
  3. lvca commented on Jan 14, 2024

    @lvca
    lvca
    on Jan 14, 2024
    Member
    More actions

    Reproduced

  4. lvca
    added this to the 24.1.1 milestone on Jan 14, 2024
  5. lvca
    added
    bug
    on Jan 14, 2024
  6. lvca
    added a commit that references this issue on Jan 14, 2024

    fix: default values don't propagate after 1st level inheritance

    b5563c5
  7. lvca commented on Jan 14, 2024

    @lvca
    lvca
    on Jan 14, 2024
    Member
    More actions

    Fixed and added test case. @ironluca Thanks for the detailed report!

    Reacted by ironluca
  8. lvca
    closed this as completedon Jan 14, 2024
  9. lvca
    added
    fixed
    on Jan 14, 2024
  10. ironluca commented on Jan 15, 2024

    @ironluca
    ironluca
    on Jan 15, 2024
    Author
    More actions

    @lvca , I have built the trunk and can confirm the matter is fixed.
    As an aside, when is V 24.1.1 slated to be released; as I understand this will be part of the release.

  11. lvca commented on Jan 15, 2024

    @lvca
    lvca
    on Jan 15, 2024
    Member
    More actions

    We usually have 1 or 2 releases a month. 24.1.1 is scheduled for the week starting on Jan 22nd, unless there is some critical/security issue, then we release ASAP.

    Reacted by ironluca
  12. tae898
    added a commit that references this issue on Jun 28, 2026

    fix: default values don't propagate after 1st level inheritance

    0b4a446
  13. mergify
    added 2 commits that reference this issue on Aug 9, 2026

    chore(deps-dev): bump testcontainers from 12.0.4 to 12.1.0 in /e2e-js…

    82fd973

    chore(deps-dev): bump testcontainers from 12.0.4 to 12.1.0 in /e2e-st…

    63efb33
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.1.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.