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

invalid result for let part for version 2.1-rc2 #4187

Closed
martingg88 opened this issue May 20, 2015 · 7 comments
Closed

invalid result for let part for version 2.1-rc2 #4187

martingg88 opened this issue May 20, 2015 · 7 comments
Assignees
Labels
Milestone

Comments

@martingg88
Copy link

SELECT *, $story as story FROM page LET $story = (SELECT @Rid as rid, url, metadata, done FROM story WHERE $
current.page = $parent.current.@Rid and $current.done = false ORDER BY metadata.release_date DESC)

decompose "story" get the following invalid result. you can refer to following url for more discussion .
https://github.com/codemix/oriento/issues/314#issuecomment-103854210

[ { [String: '#-2:1'] cluster: -2, position: 1 },
{ [String: '#-2:2'] cluster: -2, position: 2 },
{ [String: '#-2:0'] cluster: -2, position: 0 },
{ [String: '#-2:3'] cluster: -2, position: 3 },
{ [String: '#-2:4'] cluster: -2, position: 4 },
{ [String: '#-2:6'] cluster: -2, position: 6 },
{ [String: '#-2:7'] cluster: -2, position: 7 },
{ [String: '#-2:5'] cluster: -2, position: 5 } ]

@nagarajasr
Copy link
Contributor

I am not an expert, but I don't think this is a bug. $story is result of a sub-query, OrientDB creates a temporary document to hold the result of the sub-query hence you are seeing the negative rid.

@martingg88
Copy link
Author

beside the rid. it should return me other fields (etc: url, metadata and doen) in array structure. But it return me nothing now.

@alpeshgaglani
Copy link

I have the same issue - Interestingly, I do see the results in OrientDB studio. I think the results are not coming back in the binary protocol?

@martingg88
Copy link
Author

yes. i think it's a bug

@lvca lvca added this to the 2.1.x (next hotfix) milestone Sep 22, 2015
@lvca lvca added the bug label Sep 22, 2015
@wolf4ood
Copy link
Member

wolf4ood commented Feb 2, 2016

@martingg88

have you solved this?

@martingg88
Copy link
Author

Sorry. I don't have any idea about your orientdb in java environment. Please ask your team member to help. thanks.

@wolf4ood
Copy link
Member

@martingg88

this should be solved with the latest version of ODB and orientjs
see orientechnologies/orientjs#199

Thanks

@wolf4ood wolf4ood modified the milestones: 2.2.9, 2.1.x (next hotfix) Dec 27, 2016
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

6 participants