2.1-rc3 - Bug?: <>/= don't work properly with @class
See original GitHub issueContinuing from relevant issue #4279 : Those doesn’t give any results:
traverse outV() from (traverse inE('FactContains') from #12:15) while @class = 'FactGeneral' limit 2000
(In Browse mode: 0 results)
traverse outV() from (traverse inE('FactContains') from #12:15) while @class = 'FactPersonal' limit 2000
(In Browse mode: 0 results)
while this gives:
traverse outV() from (traverse inE('FactContains') from #12:15) while @class <> 'FactPersonal' limit 2000
(In Browse mode: 58 results - duplicated)
and this gives:
traverse outV() from (traverse inE('FactContains') from #12:15) while @class <> 'FactGeneral' limit 2000
(In Browse mode: 40 results - duplicated)
I thought Entity shouldn’t have been returned in those two cases right?
Another situation
select expand(outV()) from (select expand(inE('FactContains')) from #12:15) where @class <> 'FactPersonal' limit 2000
select expand(outV()) from (select expand(inE('FactContains')) from #12:15) where @class <> 'FactGeneral' limit 2000
returning the same number of rows: 32(where this came from?) all FactGenral in both cases
I tried with = returning no results as with traverse…
FactGeneral (total in my db 53) and FactPersonal (total in my db 7) are subclasses of Fact (total in my db 60)
Issue Analytics
- State:
- Created 8 years ago
- Comments:6
Top GitHub Comments
Hi,
I made some tests with 2.2.17 - these are some results:
1.1 possible additional part in the graph
2.1 Counts, using match:
a. 53, ok:
b. 7, ok:
c. 60, ok:
2.2 Traverses
a. :
b. count of previous traverse 61, :
c. count more in details, ok:
FactContains 60 Entity 1
d. 0 :
e. 0 :
f. returns rows
g. count of previous traverse , 114
f. previous count, aggregated by class:
FactContains 60 Entity 1 FactGeneral 53
i. returs rows
m. return rows
n. count of previous rows , 68
p. previous count, aggregated by class:
FactContains: 60 Entity: 1 FactPersonal: 7
2.3 match queries
a. returns 1 entity, ok:
c. returns 1, expected:
2.4 select queries
a. :
b.:
60
c.
d. previous count by class
FactGeneral 53 FactPersonal 7
e.
f. previous count by class
FactGeneral 53 FactPersonal 7
Awesome! Thanks @santo-it! I feel that this issue can be closed. I also believe that the tests need to be added in the automated test suite you have because bugs or different behaviors tend to reappear if there aren’t any test safeguards