Skip to content

Insert embedded document #778

@gramian

Description

@gramian

ArcadeDB Version: v23.1.1 (build aa687e4/1673895089679/main)

JDK Version: openjdk 11.0.17 2022-10-18

OS: MacOS 12.6

am trying to insert a document type into a embedded property. While the operation completes, the type of the inserted document is MAP and not EMBEDDED.

Expected behavior

EMBEDDED

Actual behavior

MAP

Steps to reproduce

CREATE DOCUMENT TYPE pair;
CREATE PROPERTY pair.head STRING;
CREATE PROPERTY pair.tail EMBEDDED;

INSERT INTO pair CONTENT { 'head': 'hi', 'tail': { '@type': 'pair', 'head': 'ho', 'tail': null } };
INSERT INTO pair (head, tail) VALUES ('head', { '@type': 'pair', 'head': 'ho', 'tail': null });

SELECT tail.type() FROM pair;

There is an SQL-Insert example which suggests this should work: https://docs.arcadedb.com/#SQL-Insert

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