LucidDB / luciddb

DEFUNCT: See README
https://github.com/LucidDB/luciddb
Apache License 2.0
53 stars 24 forks source link

[FRG-363] LURQL problem with recursively follow composite backward #509

Open dynamobi-build opened 12 years ago

dynamobi-build commented 12 years ago

[reporter="jvs", created="Wed, 5 Nov 2008 14:51:33 -0500 (GMT-05:00)"] Originally from LucidEra JIRA. Need to come up with an equivalent repro based on FEM.

dynamobi-build commented 12 years ago

[author="jvs", created="Wed, 5 Nov 2008 14:51:41 -0500 (GMT-05:00)"]


Given an ODS and a copy of LUCIDERA_ANALYTICS in the repository, the following query returns only the ODS app (but should return both):


select v
from class ModelElement where name in ('WAREHOUSE_SCHEMA','ODS_VARS') then (
    recursively (
        follow composite backward
    )
) gather with parent then (
        follow composite backward destination class AppTemplate as v
);


The query below returns the correct results:


select v
from class ModelElement where name in ('WAREHOUSE_SCHEMA','ODS_VARS') then (
    recursively (
        follow association ElementOwnership backward
    )
) gather with parent then (
        follow association ElementOwnership backward destination class AppTemplate as v
);