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

[v3.0.1] LET block always returns null when used with out function #8283

Closed
mehdizarepour opened this issue May 22, 2018 · 2 comments
Closed
Assignees
Labels
Milestone

Comments

@mehdizarepour
Copy link

OrientDB Version: 3.0.1

Java Version: 1.8

OS: Linux

I want to use Let block in my query.

Actual/Expected behavior

When I assign an edge to a variable in LET block and use it in projection, it returns null. But it is expected to return a value.

SELECT $x, name FROM V
let $x = out("E")
SELECT $x, name FROM V
let $x = out("E").name

Result:

{
  "result": [
        {
            "$x": null,
            "name": "A"
        },
        {
            "$x": null,
            "name": "B"
        }
    ],
}

Steps to reproduce

insert into V set id = 1, name = "A"
insert into V set id = 2, name = "B"

create edge E from (select from V where id = 1) to (select from V where id = 2)

SELECT $x, name FROM V
let $x = out("E") 
@luigidellaquila
Copy link
Member

Hi @mehdizarepour

Thank you very much for reporting, I'll check it and let you know

Thanks

Luigi

@markodjurovic
Copy link
Contributor

Hi @mehdizarepour

I pushed fix for this issue. It will be released with version 3.0.2

Thanks,
Marko.

@luigidellaquila luigidellaquila added this to the 3.0.2 milestone May 25, 2018
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

3 participants