Repository navigation
Description
ArcadeDB Server v23.12.1-SNAPSHOT
MacOS Ventura Version 13.6 (22G120
OpenJDK Runtime Environment Temurin-17.0.9+9 (build 17.0.9+9)
This has been languishing on Discord for a few days with no response.
I'm running queries from OrientDB documentation against copies of the OrientDB demodb on ArcadeDB. The database can be imported from arcadedb-datasets:orientdb/demodb.gz.
In Studio, I'm able to retrieve inherited types
MATCH {type: Customers, as: customer, where: (OrderedId=1)}--{type: Restaurants}
RETURN $pathelements
but not parent types
MATCH {type: Customers, as: customer, where: (OrderedId=1)}--{type: Locations}
RETURN $pathelements
What am I missing?
Here's part of the schema showing the inheritance:
Locations
-- + Services
---- + Hotels
---- + Restaurants
-- + Attractions
---- + Monuments
---- + Castles
---- + Theatres
---- + Archaeological Sites
The inheritance is confirmed by select from schema:types
select from Locations
in Studio returns appropriate results
Below is the output from a select:
select OUT() from Customers where OrderedId = 1
{
"user": "root",
"version": "23.12.1-SNAPSHOT (build 0a8972dec07cb5a0d1cce0127fe9154e140e0b5e/1703095456042/main)",
"serverName": "ArcadeDB_0",
"result": {
"vertices": [],
"edges": [],
"records": [
{
"OUT()": [
{
"Id": 65,
"Name": "Teatro Consorziale",
"Type": "theatre",
"@cat": "v",
"@type": "Theatres",
"@rid": "#425:8"
},
{
"Id": 62,
"Name": "Statua del Savonarola",
"Type": "monument",
"@cat": "v",
"@type": "Monuments",
"@rid": "#344:7"
},
{
"Id": 47,
"Name": "Incisioni rupestri",
"Type": "archaeological_site",
"@cat": "v",
"@type": "ArchaeologicalSites",
"@rid": "#491:5"
},
{
"Id": 127,
"Name": "Château de Montmayeur",
"Type": "castle",
"@cat": "v",
"@type": "Castles",
"@rid": "#395:15"
},
{
"Id": 9,
"Name": "Colin",
"Surname": "OrientDB",
"Gender": "Male",
"Email": "colin@example.com",
"Bio": "OrientDB Team",
"@cat": "v",
"@type": "Profiles",
"@rid": "#49:1"
},
{
"Id": 1738,
"Name": "Locanda della Luna",
"Type": "restaurant",
"@cat": "v",
"@type": "Restaurants",
"@rid": "#244:217"
},
{
"Id": 1099,
"Name": "Baita GAM Piovene Rocchette",
"Type": "restaurant",
"@cat": "v",
"@type": "Restaurants",
"@rid": "#247:137"
},
{
"Id": 1834,
"Name": "Einsiedeln",
"Type": "pub",
"@cat": "v",
"@type": "Restaurants",
"@rid": "#244:229"
},
{
"Id": 730,
"Name": "Carrel",
"Type": "alpine_hut",
"@cat": "v",
"@type": "Hotels",
"@rid": "#196:91"
},
{
"Id": 233,
"Code": "US",
"Name": "United States",
"@cat": "v",
"@type": "Countries",
"@rid": "#9:29"
}
]
}
]
},
"explain": "+ FETCH FROM INDEX Customers[OrderedId]\n OrderedId = 1\n+ EXTRACT VALUE FROM INDEX ENTRY\n filtering buckets [533,536,527,530,539,542,521,524]\n+ FILTER ITEMS BY TYPE \n Customers\n+ LIMIT ( LIMIT 25)\n+ CALCULATE PROJECTIONS\n OUT()"
}```
Activity
tmcsys commentedon Jan 12, 2024
Test case
Output below
Match fails to match Parent types
lvca commentedon Jan 14, 2024
Reproduced.
fix: inheritance on edges was nto working in the SQL MATCH
lvca commentedon Jan 14, 2024
Fixed. Thanks for the detailed test case!
chore(deps): bump neo4j-driver from 6.0.1 to 6.1.0 in /e2e-js [skip ci]
fix: inheritance on edges was nto working in the SQL MATCH
chore(deps): bump neo4j-driver from 6.0.1 to 6.1.0 in /e2e-js [skip ci]
chore(deps-dev): bump testcontainers from 12.0.4 to 12.1.0 in /e2e-js…
chore(deps-dev): bump testcontainers from 12.0.4 to 12.1.0 in /e2e-st…