Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Range on in() using nested projection fails #8778

Closed
scrabb opened this issue Feb 21, 2019 · 1 comment
Closed

Range on in() using nested projection fails #8778

scrabb opened this issue Feb 21, 2019 · 1 comment
Assignees
Labels
Milestone

Comments

@scrabb
Copy link

scrabb commented Feb 21, 2019

OrientDB Version: 3.0.15

OS: Windows 10

Steps to reproduce

The Document class has 3 vertices, 2 of which have an edge called IsA and 1 with no edge. The following 3 queries all return the correct data.
select Name.Default as Name,in('IsA'):{@class as Label,Name.Default as Name} as All_in from Document limit 3
select Name.Default as Name,in('IsA')[0]:{@class as Label,Name.Default as Name} as All_in from Document limit 3
select Name.Default as Name,in('IsA')[1]:{@class as Label,Name.Default as Name} as All_in from Document limit 3

however

select Name.Default as Name,in('IsA')[0..2]:{@class as Label,Name.Default as Name} as All_in from Document limit 3
causes the following error
java.lang.UnsupportedOperationException: Cannot convert [Ljava.lang.Object;@8461eaa - class [Ljava.lang.Object; to JSON

@luigidellaquila luigidellaquila self-assigned this Feb 26, 2019
luigidellaquila added a commit that referenced this issue Mar 8, 2019
eg. SELECT out()[0..2]:{*} FROM …

Resolves: #8778
@luigidellaquila luigidellaquila added this to the 3.0.18 milestone Mar 8, 2019
@luigidellaquila
Copy link
Member

Hi @scrabb

I just pushed a fix, it will be released with v 3.0.18

Thanks

Luigi

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Development

No branches or pull requests

2 participants